Eclipse cannot find the JDK after it is installed on Maven

Source: Internet
Author: User

On 9/3/09 10:43 AM, Dan Grindstaff wrote:

Hello all, I has installed the Maven plugin with Eclipse and on Startupit keeps complaining about runing in JRE and not B eing able to fin jdk. I have modified my system and user environmental variables to includejava_home pointing to the JDK, even added a variable To the projectjava_home pointing to the JDK, but still maven complains. I cannot builda jar from the project. Any ideas is greatly appreciated. Tia.
The above is a senior encounter problems, just as I have encountered the same problem, I will extract it down. The workaround is to modify the Eclipse.ini configuration file,
Move the solution intact to prevent forgetting:
Specifying the JVM

absolutely certain CERTAIN
eclipse.ini
Note the format of THE-VM option-it is important to be exact
    • THE-VM option and its value (the path) must is on separate lines.
    • The value must is the full absolute path to the Java executable, not just to the Java home directory.
    • THE-VM option must occur before The-vmargs option, since everything After-vmargs is passed directly to the JVM.
Windows Example
-showsplashorg.eclipse.platform--launcher.xxmaxpermsize256m-vmc:/java/jdk/1.5/bin/ javaw.exe-vmargs-xms40m-xmx512m
Linux Example

-showsplashorg.eclipse.platform--launcher.xxmaxpermsize256m-vm/opt/sun-jdk-1.6.0.02/bin/ java-vmargs-xms40m-xmx512m
    1. Then find the shortcut to MyEclipse, open the properties, locate the target bar, modify the JAVAW path specified by the-VM parameter as a valid path. Or do not open with a shortcut provided by Myeclips, or you can start directly with the Eclipse launcher MyEclipse

Eclipse cannot find the JDK after it is installed on Maven

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.