Install, configure JAVA8 under Windows

Source: Internet
Author: User
After installing and downloading JAVA8, configure the Java environment, I configure the environment variable to add or modify path according to the personal production environment; Java_home,classpath path is to facilitate the system to find Java.exe, Javac.exe and other programs, Java_home is a variable, convenient path and classpath configuration, Classpath convenient system Find JAVA supplied jar file Java_home = "C:\Program files\java\jdk1.8.0_11 path=path +";%java_home%\bin;%java_ Home%\jre\bin; "Classpath =".; %java_home%\lib\dt.jar;%java_home%\lib\tool.jar; "

Environment variables configured to allow Java command in CMD later Warning:no leading-on line 1 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Warning:missing VM type on line 1 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Warning:no leading-on Line 2 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Warning:missing VM type on line 2 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Warning:no leading-on Line 3 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Warning:missing VM type on line 3 of ' C:\Program files\java\jre8\lib\amd64\jvm.cfg '
Error:no known VMs. (Check for corrupt jvm.cfg file)
So try to remove C:\Program files\java\jre8\lib\amd64\jvm.cfg to see if Java will repair itself. Unfortunately, there is no usual wish. But what makes me wonder is that the directory set in the environment variable is C:\Program files\java\jdk1.8.0_11, and the error prompts the jvm.cfg in Jre8. Regardless of these, the C:\Program files\java\jdk1.8.0_11\jre\lib\amd64\jvm.cfg copied to the C:\Program files\java\jre8\lib\amd64\ under the error, This is java/lang/classnotfoundexception:error in opening JAR file C:\Program Files\java\jre8\lib\rt.jar Well, and will Java_ The rt.jar underneath the home has replicated the past
Run java-version to display the results correctly. Why are you doing this? By. Character problem

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.