A problem that eclipse cannot start

Source: Internet
Author: User
Eclipse3.7.1,jdk7
Install the Maven plugin, restart Eclipse, and report a warning:
Eclipse is running in a JRE, but a JDK is required.
Some Maven plugins may isn't work when importing projects or updating source folders.

Search the method, is in the Eclipse.ini add this sentence:
-vm
D:/java/jdk1.7.0_02/bin/javaw.exe

But this time I did not know what I did, so that eclipse can not start, reported an error:

Error:could not create the Java Virtual MACHINE.R

ERROR:A Fatal exception has occurred. Program would exit.

OK, Google search, here to say in the Eclipse.ini to the-VM that I added before the removal. I removed the-VM item, and as a result Maven also reported a warning: Some maven plugins may not work when importing projects or updating source folders.

Later, I found the possible problem: the jdk6 used in my path, and my-VM pointed to jdk7.

Finally, keep the configuration in the path and eclipse.ini consistent and solve the problem:

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.