Run Javac report Javac not internal or external commands, but running Java, java-version Normal

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, classpath are all in the system variables set up; Java_home Add the JDK installation directory, note java_home  to write 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   Note This place don't miss the front point. Add after the original path value  ;%java_home%\bin;%java_ After the Home%\jre\bin is determined, 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.

  

Run Javac report Javac not internal or external commands, but running Java, java-version Normal

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.