what do I need to write in my eclipse.ini to get rid of this warning:
The Maven Integration requires that Eclipse be running in a JDK,
beacuase a number of Maven core plugins are using jars from the JDK.
Please make sure the -vm options in eclipse.ini is pointing to a JDK
and verify that Installed JREs are also using JDK installs.
My ini says this and the problem is not solved:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction openFile
-product org.eclipse.epp.package.java.product
--launcher.defaultAction openFile
--launcher.XXMaxPermSize 256M
-vm C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Update: The above definitely doesn't change my vm I checked it according to this answer and it says I'm still running eclipse.vm=C:\Windows\System32\javaw.exe
Update2: A suggested on several websites I tried to run eclipse from the commandline as .\eclipse -vm "..\Java\jdk1.6.0_25\bin\javaw.exe" and it worked!!! In "Eclipse Installation Details"->"Configuration" it now says eclipse.vm=C:\Program Files\eclipse\\..\Java\jdk1.6.0_25\bin\javaw.exe
Did you try using slashes instead of backslashes for the folder of your jdk?
As has been suggested in other answers you should both change backslashes to forward slashes in your JDK path and put -vm and the JDK path on different lines. This is what works for me:
-vm
C:/Program Files (x86)/Java/jdk1.6.0_26/bin/javaw.exe
I have these two lines as the first ones in my eclipse.ini file, but that should not be required.
Here is my eclipse.ini (eclipse 3.6) and maven works fine
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
I just downloaded eclipse from official site, download maven 2.2.1 from apache site, installed
m2eclipse - http://m2eclipse.sonatype.org/sites/m2e
m2eclipse Extras http://m2eclipse.sonatype.org/sites/m2e-extras
(Install new software)
Set up my maven installation in Window->Preferences->Maven->Installations
and that's all for me to work with maven.
Have you tried an enter between -vm and the java path? I think it needs a new line. You can also try pointing to the jvm.dll instead of the .exe
Related
When I am starting the eclipse I am getting this error. -vm argument contains the path of the java.exe which is not their in my system possible after a java upgrade. How Can I correct this?
Java was started but returned exit code=13
C:/ProgramData/Oracle/java/javapath/java.exe....
This path does not exist in my system
Eclipse.INI contents are
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
osgi.requiredJavaVersion=1.6
this line specifies to use Java 6. If you upgraded JAVA you should update this field.
https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM
My JVM seems to be 32 bit and Eclipse is definitely 64 bit may that is the reason and earlier location it referred must have had 64 bit Java which got uninstalled in whole upgrade process somewhere. I guess I will just download the 32 bit version of Eclipse Mars and that would solve the problem. –
I am trying to update my eclipse to work with a jdk and not a jre.
I followed the instruction in this forum , also search google for answers but for some reason it still don't work.
I try'ed going to preferences ->java->install jre's , removing the old jre from there and using the path for the jdk.
also try'ed going to project properties -> java build path -> jre system libraries -> edit-> workspace default jre.it also says there i'm using jdk.
I even try'ed adding to the ini file the next path C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe
but when i try'ed deploying my program to app engine i get the next message :
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
my eclipse version is juno 4.2 and my jdk version is 1.6.0_31
I don't know what else i need to change. I even uninstall my older jre from my computer but eclipse still don't work with the jdk ( although it recognize it )
I'm out of idea's ... anyone could help me please ??
this is my ini file :
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
-vm
C:\Program Files\Java\jdk1.6.0_31\bin
thanks for the help
If you want to change JVM Eclipse itself should run on, the right place for that is eclipse.ini. Here are instructions on how to specify that: eclipse.ini.
Common mistakes are specifying -vm parameter name and the value in one line, or missing '-vm', or misplacing it. Also, pay attention to -vm format on different OSes.
EDIT (after .ini file published): your -vm option comes after -vmargs, which is wrong (both lines are treated as VM args). The correct parameter placement in your .ini file would look like this:
...
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_31\bin
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
Below you can find my eclipse ini where I set a dedicated JDK via
-vm C:/Program Files (x86)/Java/jdk1.7.0_10/bin/javaw.exe
Have a look at the section "Specifiying the Java Virtual Machine" in the eclipse help.
Quote:
Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-vm
C:/Program Files (x86)/Java/jdk1.7.0_10/bin/javaw.exe
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.httpclient.retrieve.readTimeout=999999
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms128m
-Xmx1024m
None of the other answers worked for me. I eventually just removed the "jre7" directory and, presto-chango, Eclipse started using the JDK that was installed next to it.
I am trying to get my Eclipse on OS X to start up using JDK 1.6 rather than the JDK 1.5 that it normally uses. I have edited my eclipse.ini file (Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini) to the following:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
-vmargs
-Xms40m
-Xmx384m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
but when I start up Eclipse and go to About Eclipse SDK → Installation Details → Configuration it still says (among other things)
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_30-b03-389-9M3425
java.specification.version=1.5
java.version=1.5.0_30
Can someone please tell me what I'm doing wrong here? Thanks.
java.vm.version=1.5.0_30-161
I believe that the -vm setting must be the first two lines of the eclipse.ini file.
The Eclipse executable launcher was unable to locate its
companion launcher jar.
or
This (above) error occurs when I am trying to start my eclipse, on Fedora 12. my jdk and eclipse both are of 32 bit.
And eclipse.ini as
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
Has Eclipse been installed through yum or manually?
Is it a new install or has it been upgraded?
From the ini file, it looks like a version mismatch between the --startup jar and the --launcher.library.
Depending on how Eclipse was installed, you can look for existence of the specified jar and the folder. Most likely one or both is missing or incorrect.
How can the user-agent be changed in Eclipse 3.5? I tried adding the property -Dhttp.agent=my user agent to the eclipse.ini file, but using WireShark I can see that the user agent is still Jakarta Commons-HttpClient/3.1. I need to change this so that I can get through the company's filter to download plug-ins and updates. Here is my eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-vm
C:/Progra~1/Java/jdk1.6.0_14/jre/bin/javaw.exe
-vmargs
-Xms1024m
-Xmx1024m
-Dhttp.agent=my agent
-Djava.net.preferIPv4Stack=true
-Dosgi.requiredJavaVersion=1.5
If Eclipse is not overriding the configuration, Apache's HttpClient library will use the httpclient.useragent system property instead of http.agent.