Eclipse report JVM terminated.exitcode=2 Exception resolution

Source: Internet
Author: User

Such as I originally installed is jdk1.7, now to use the jdk1.8, so I installed a jdk1.8, install jdk1.8, open eclipse to prompt such information, the Internet to check that the environment variable path needs to be modified, the original is installed 1.8, it automatically in the path of the value of the first add a What to do: "C:\ProgramData\Oracle\Java\javapath;", this is 1.8 self-added, so, later configured "%java_home%/bin;%java_home%/jre/bin;" Eclipse doesn't have to, but because eclipse requires 1.7, it now looks at 1.8 in path, so it prompts for such errors.

Solution: The simplest is to put the value inside the path "%java_home%/bin;%java_home%/jre/bin;" and "C:\ProgramData\oracle\Java\javapath;" Front.

For example, my Path value setting (modified):%java_home%/bin;%java_home%/jre/bin; C:\ProgramData\Oracle\Java\javapath; C:\Program Files (x86) \common files\netsarang;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;% Systemroot%\system32\windowspowershell\v1.0\;%maven_home%\bin; C:\Program Files (x86) \oracle\instant Client\Bin; C:\Program Files\git\cmd

Notice the first value, so there should be no problem and you can open eclipse normally.

Eclipse report JVM terminated.exitcode=2 Exception resolution

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.