Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 380
cometta Avatar asked May 25 '09 06:05

cometta


People also ask

How do I get 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.

Where is Eclipse ini located in windows?

you can find the eclipse. ini under Contents>Eclipse folder.

What is Eclipse ini?

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.


2 Answers

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 
like image 105
cometta Avatar answered Sep 24 '22 00:09

cometta


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 
like image 22
Mike B. Avatar answered Sep 25 '22 00:09

Mike B.