Configuring variables for the Java environment
1. Download and install the JDK
2. Right-click on "My Computer" → properties → advanced system settings → environment variable changes:
A: The value of the input variable name (java_home) variable in the new (paste the installation path of the JDK: location)
B: System variable opens path, variable value increases "%java_home%bin/;"
3. Test: Start →cmd→java-version→ carriage return (show JDK version, success)
Write the source program (file name format is Xx.java, start with uppercase) → Compile the source program (Start →cmd→java-version enter →CD paste Xx.java location, enter the Xx.java in which disk (d:) Carriage return Javac Xx.java Enter →xx.class (appearing at Xx.java, bytecode file), run, continue entering Java XX (file name), enter.
Configuring Java environment variables and compiling source programs