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
- 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