1-Build a JAVA development environment and 1-Build a java Development Environment
Step 1: Install JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html, and later versions (depending on your computer). Select the path and remember the path.
Installation path: the bindirectory is an executable file. The main files are javac.exeand java.exe.
The lib directory is the class library file for JAVA Development, ending with. jar.
Step 2: Configure environment variables:
JAVA_HOME: configure the JDK installation path
PATH: configure the JDK command file location, which is both bin
CLASSPATH: Specifies the location of the class library file.
Configuration method: My computer (right-click) -- properties -- Advanced System settings -- environment variables -- System Variables
1. JAVA_HOME needs to be created. JAVA_HOME is the variable name, And JDK installation path is the variable value.
2. The path itself is owned. Add it. The path of the bin directory is the variable value, which is placed at the frontend and separated by semicolons (;).
3. CLASSPATH also needs to be created. The variable value is the path of lib, Which is.; F: \ JDK_Soft \ lib. (The comma is not counted.) This is my path. Pay attention to the preceding points and semicolons.
Then click OK.
Verification Successful:
Open the command line file and CMD. execute java and javac. If a bunch of similar things appear, the configuration is successful.