Eclipse is running in a JRE, but a JDK is required workaround

Source: Internet
Author: User

This article is not original, transferred from http://liguoliang.com/2010/eclipse-is-running-in-a-jre-but-a-jdk-is-required/

A warning message appears every time you install Maven:

Eclipse is running in a JRE, but a JDK was requiredsome Maven plugins may isn't work when importing projects or updating sour Ce folders.

Solve the problem in two steps:

1. Check the JRE that eclipse is using

' Java ', ' Preferences ', ' Window ', ' installed JREs ' determines that the JDK is being used rather than the JRE.

2. Configure Eclipse.ini

Review the Eclipse configuration file and Add/edit the following code:

-Vmc:\progra~2\JAVA\JDK1.6.0_16\JRE\BIN\JAVAW

Precautions:

1. First row parameter name, second behavior value, cannot be written to the same line

2. For the value of the second row, because no spaces are allowed, use progra~1 or 2 instead of program Files (x86).
If under Program files, use Progra~1, if under x86, use Progra~2

3. The position in the file can not be put to the last (after-vmargs), do not rest assured directly placed in the file, such as:

-Vmc:\progra~2\java\jdk1.6. 0_16\JRE\BIN\JAVAW-startup ... .. --launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.5-xms240m- xmx912m

Eclipse is running in a JRE, but a JDK is required workaround

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.