Home > Java > Javagetting Started > body text

How to run java files

王林
Release: 2019-11-11 09:34:23
Original
7334 people have browsed it

How to run java files

1. Prepare a jdk and copy the bin directory of the jdk, as shown in the figure below:

How to run java files

2. Then enter the PATH environment Add the JDK bin directory to the variable, as shown in the figure below:

How to run java files

3. Then write a java program, as shown in the figure below, just use Notepad

How to run java files

4. Then open the CMD command line and use the javac command to compile the java file, as shown below:

How to run java files

5. Finally Just use the java command to execute the compiled java file, as shown below:

How to run java files

Recommended tutorial: Java tutorial

The above is the detailed content of How to run java files. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template