Search code examples
eclipsemaven-2maveneclipse-pluginm2eclipse

How do I set the eclipse.ini -vm option?


I installed the Maven plugin for Eclipse, and then I got an error like below:

please make sure the -vm option in eclipse.ini is pointing to a JDK

How do I use the -vm option to point to my JDK in eclipse.ini?


Solution

  • My solution is:

    -vm
    D:/work/Java/jdk1.6.0_13/bin/javaw.exe
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256M
    -framework
    plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m