WIN8 Configuring Java Environment variables

Source: Internet
Author: User

I've never had a JDK before. Today's situation, a variety of solutions to try the afternoon, finally came out, say the solution:

Java_home and Classpath are all established in the system variables;

Java_home Add the installation directory for the JDK, note that java_home should be written correctly: Do not add semicolons behind the installation directory.

The corresponding value of classpath is.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar pay attention to this place don't miss the front point.

Add after the original path value;%java_home%\bin;%java_home%\jre\bin or direct:;%java_home%\bin;%java_home%\jre\bin

When you are sure, restart the cmd input javac this time it will be useful. Remember to restart OH.

There are all the Internet on the front, what do I meet today?

Is that I wrote Java_home Javahome less _, but I use the back of the%java_home% so wrong, because I did not establish the JAVA_HOME environment variable I built is javahome, so wrong.

Plainly java_home is a variable name that corresponds to the value of the variable, but if the variable name of the declared variable and the variable name used is different, how can it, hehe, this principle and programming.

Students, we must pay attention to this problem, and so on other variable names should also pay attention to whether the correct.

WIN8 Configuring Java Environment variables

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.