1. Setting System Environment variables
1.1. Set the path path for the JDK
Role: Using the PATH environment variable, the bin directory under the JDK installation directory is configured under the PATH variable to enable the javac instruction and the Java directive to run in any directory |
Method One: Set the path value directly on path
Method Two (recommended): set by referencing the variable name
The java_home is referenced to path in the%xxx% way
1.2. Configuring CLASSPATH Environment variables
Function: A. class file in the Classpath directory that can be run in any directory Note: "Java program, after compiling is a *.class file" |
Understanding of 1.3.path and Classpath
The PATH environment variable is the executable file, if the. exe, to the executable file in the current path to find, if not found, go to the path configured in the environment variable to find
The directory where the Java class runs files is recorded in the CLASSPATH environment variable.
2. Writing the first Java file
Step one, write the code on the Notepad and save:
Step two, execute under Doc:
Step three: Analyze the execution process
3. Manually configure a Java IDE
Note: "Specific editplus How to configure the IDE, see me another article: C-language-environment configuration"
Preparation Tool: EditPlus
To start the configuration:
3.1 Configuring Javac.exe
3.1 Configuring Java.exe
4. Start using your own IDE to write the program
Java Series Learning (ii)-Configuring the development environment