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?
On Windows and on most Linux distributions the eclipse. ini file is located in the same directory as the eclipse executable. On macOS, control-click on the executable, select Show Package Contents and then go to either Contents/MacOS/eclipse. ini or Contents/Eclipse/eclipse.
you can find the eclipse. ini under Contents>Eclipse folder.
ini in your Eclipse installation directory (or in the case of Mac, the Eclipse. app/Contents/MacOS directory) is used. eclipse. ini is a text file containing command-line options that are added to the command line used when Eclipse is started up.
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
eclipse.ini file must have -vm
on the first line and a path on the second line. Don't try to put everything into one line!
-vm C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With