Java series Learning (II)-configure the development environment and java Series
1. Set system environment variables
1. Set the JDK Path
Purpose: Use the path environment variable to configure the bin directory under the JDK installation directory to the path variable to run the javac and java commands in any directory. |
Method 1: directly set the Path value on the Path
Purpose: run the. class file in the classpath directory in any directory.
Note: [the java program is a *. class file after compilation]
1.3.understanding of path and classpath
The path environment variable records executable files. If .exe is used, find the executable files in the current path first. If not, find the files in the path environment variable.
The classpath environment variable records the directory where the java class runtime files are located.
2. Compile the first java File
Step 1: write the code in notepad and save it:
Step 2: run the following command in the doc:
Step 3: analyze the execution process
3. manually configure a java ide
Note: [how to configure EditPlus to ide? refer to my article: C language-Environment configuration]
Preparation tool: EditPlus
Start Configuration:
3.1configure javac.exe
3.1configure java.exe
4. Start to write programs with your own ide.