1. Configure JAVA environment variables and java environment variables

Source: Internet
Author: User

1. Configure JAVA environment variables and java environment variables

  1. To successfully configure the Java environment variables, you must install JDK to start configuration.
  2. To successfully configure the Java environment variables, you must install JDK to start configuration.

  3. Install the JDK wizard and set relevant parameters.

  4. Installing Program functions,

  5. Select the installation path, which can be customized or default.

  6. 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.

  7. Next, configure the environment variables, right-click my computer, and choose Properties> advanced> environment variables ],

  8. 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,

  9. 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,

  10. 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 ;".

  11. Check whether the environment variable is successfully configured. Enter "JAVAC" in the doscommand line window, and the output help information is correctly configured.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.