Eclipse + Maven -> eclipse.ini - java

I want to set up maven in eclipse. If I set the option
-vm
C:\jdk1.7.0_45\bin\javaw.exe
in the eclipse.ini, my eclipse is not starting anymore. The path is definitely correct and I saw the entry like this on different sources on the internet. My complete configuration looks like that:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-vm
C:\jdk1.7.0_45\bin\javaw.exe

Put the 2 lines :
-vm
C:\jdk1.7.0_45\bin\javaw.exe
before the -vmargs option.
This is because anything after the -vmargs is taken as arguments.

Related

Error while installing eclipse(eclipse-jee-helios-linux-gtk-x86_64) in ubuntu

I downloaded and extracted the eclipse 64 bit version for my ubuntu system.The download and the extraction was successful however I get the below error when I try running eclipse
JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/ubuntu/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/ubuntu/Downloads/eclipse/eclipse
-name Eclipse
--launcher.library /home/ubuntu/Downloads/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503/eclipse_1307.so
-startup /home/ubuntu/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 230012
-product org.eclipse.epp.package.jee.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/ubuntu/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Please do help me out.
My eclipse.ini file
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503
-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
you can follow this link http://ubuntuhandbook.org/index.php/2016/01/how-to-install-the-latest-eclipse-in-ubuntu-16-04-15-10/. to install eclispe. you said you are lunching the eclipse.exe and I think normaly files with.exe extension does not belong to ubuntu

Java Exit Code 13? [duplicate]

This question already has answers here:
Eclipse crashes at startup; Exit code=13
(6 answers)
Closed 7 years ago.
How can I fix this error to startup eclipse ?
Eclipse.ini file I have installed jdk 7u55
-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.v20150204-1316
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files (x86)\Java\jdk1.7.0_55\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx1024m
No matter how I edit the eclipse.ini eclipse won't run and gives me exit code 13 .
I have the --launcher.appendVmargs after the -vm and is working for me:
-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.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jdk1.8.0_40/bin/javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx2048m

Failed to create Java virtual machine using Eclipse

My installation of Eclipse reports error that it failed to create a Java virtual machine although I use it daily and I didn't change anything.
My eclipse.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.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
Just add your JDK path in windows environment variable.
or
Open eclipse.ini file and Change the vmargs sizes to
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
or
In your eclipse.ini file
Add -vm C:\Program Files\Java\jre7\bin\javaw
at beginning of your eclipse.ini
//make sure you have same directory structure
And then remove 256m which is below the line --launcher.XXMaxPermSize. It will work.

Java was started but returned exit code=14

I installed the SDK Tool in my windows 7 64 bits laptop, and I got that error.
Java was started but returned exit code=14
Here is the info I have in my eclipse.ini file
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=7
-Xms40m
-Xmx768m
-Declipse.buildId=v22.6.2-1085508
-XX:MaxPermSize=512M
I noticed a typo:
-Dosgi.requiredJavaVersion=7
should be:
-Dosgi.requiredJavaVersion=1.7
Also, for eclipse to work Java 7 or later must be installed

Eclipse error on launching

I have installed eclipse for andriod but when I launch it, I am getting error in the eclipse executable launcher that was unable to locate its companion shared library where
my eclipse.ini file is
-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
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm “C:\Program Files\Java\jdk1.7.0_51\javaw.exe”
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v21.1.0-569685
It was working some days before but after upgrading jdk it is not working

Categories