1. Configure JAVA environment variables and java environment variables
- To successfully configure the Java environment variables, you must install JDK to start configuration.
To successfully configure the Java environment variables, you must install JDK to start configuration.
Install the JDK wizard and set relevant parameters.
Installing Program functions,
Select the installation path, which can be customized or default.
After the installation is successful, test whether the installation is successful. Click Start> RUN> CMD, enter Java-version in the command prompt, and press Enter, the installation is successful.
Next, configure the environment variables, right-click my computer, and choose Properties> advanced> environment variables ],
Select New System variable. In the new System variable dialog box that appears, enter JAVA_HOME in the variable name text box ", in the "variable value" text box, enter the JDK installation path (that is, the folder path in step 5), and click "OK,
In the "System variables" option area, check the PATH variable. If it does not exist, create a new variable PATH. Otherwise, select the variable and click "edit, add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;" or directly "% JAVA_HOME % \ bin;" to the start position of the variable value text box ;", click OK,
Check the CLASSPATH variable in the "System variables" option area. If the CLASSPATH variable does not exist, create the CLASSPATH variable. Otherwise, select the variable and click "edit, add "." To the start position of the variable value text box. % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar ;".
Check whether the environment variable is successfully configured. Enter "JAVAC" in the doscommand line window, and the output help information is correctly configured.