Eclipse Kepler not starting with specified vm - java

I've modified my eclipse.ini to:
-vm C:\Users\myuser\java\jdk1.7.0_25\bin\javaw.exe
-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.v20130521-0416
-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
In process explorer, i see that the exe is started with: C:\Windows\System32\javaw.exe
Why is it not picking up my specified vm? In console, java -version from anywhere reflects the one i'd like to use, so my path is fine.

The -vm switch needs to be on two lines. Try this:
-vm
C:\Users\myuser\java\jdk1.7.0_25\bin\javaw.exe

Note the format of the -vm option - it is important to be exact:
The -vm option and its value (the path) must be on separate lines.
The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.

Eclipse kepler also doesn't start when you have two versions of Java. One which is a higher version than the one specified in your Classpath and Path environmental variables.. So uninstall the higher version or change your classpath and path to the newer versions..Example I have Java 7u67 in my classpat hand path variables and some application has asked me to upgrade my java version to java 8u40..Then your kepler doesn't start..Uninstall java 8u40 or change the classpath and path..It works and it did for me..

Related

Eclipse Installation Errors

I have been trying to install Eclipse on my Windows 10 Dell PC.
Here's how my eclipse.ini file looks like originally:-
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
I have been trying to do the following:-
Changed version from 1.8 to 1.7 as I have installed Java 1.7
Added this before -vmargs
-vm
C:\Program Files\Java\jdk1.7.0_80\bin\javaw.exe
Also changing -Xmx1024m to -Xmx512m
But still some or the other error occurs and I am totally clueless about what is happening
I get errors like
Cannot create Java Virtual Machine
or
An error has occurred. See log \some\path in configuration folder whose content I am unable to understand
I don't have any workspace where I can delete .metadata/.plugins some file path to something call .snap where I can delete that
Also, tried -clean command, that doesn't works too.
I would start with cleaning your system, that means uninstall Java completely with all of its versions. Either that, or try to upload that log you cannot understand, maybe some of us will and it will shine a light on your situation.

Error starting eclipse exit code=13

I have already searched for this but i cant find something that answer this (tried some but i dont understand how to proceed or it just dont works)
So here am I, when I launch eclipse it just doesn't start and I got this message:
If I understood well, the eclipse.ini file has something to do with the problem. Here it is:
Sorry for my language, I am not native english so, I tried to explain as best as I could.
You have a 32bit OS and you are trying to use a 64bit eclipse and/or 64bit JDK
Before to do this i suggest to verify the type of your OS(32 or 64 bit).
-I also advise you to check the version of java and eclipse IDE that you have downloaded and installed
After this try to erase the string from your ENV path of WINDOWS from System->Advanced settings->enviroment path
and erase the string C:\ProgramData\Oracle\Java\bin;
if it doesn't work yet try to modify your eclipse.ini like this:
-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
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
**-vm
C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe**
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xmx512m
you must put the string before vmargs and put the correct release of java.
Also you have to put -vm and a new line the path

Eclipse error upon opening "Alert Failed to create the Java Virtual Machine"

I just downloaded eclipse, and when I open it I am getting an error "Alert Failed to create the Java Virtual Machine".
I have tried solutions that others have posted here but none seem to work. I also have Java version 1.7.
Here is my eclipse.ini file as well.
Thanks in advance for any help!
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
I would add an explicite path to a compatible Java App:
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents/Home/bin/java
-vmwargs
...
You must add the -vm lines before the existing -vmargs lines.
Modify the path to match your installed java, you can run java_home to find out. It needs to match the architecture of the Eclipse native parts.
I found a solution. And it has been solved on my computer
if you are using mac and JDK 11+ with STS or Eclipse follow these steps:
step1. rename libjli.dylib
cd /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS
sudo mv libjli.dylib libjli.dylib.bak
step2. create linked file for libjli.dylib
sudo ln -s ../Home/lib/libjli.dylib libjli.dylib
step3. restart Eclipse.
This should be a bug for Eclipse and should be fixed in the next version of Eclipse.

Eclipse: -Failed to load the JNI shared library-

I know that this question has been asked countless times, but I have no idea what I'm doing, and need some help. Just... help me
This is what I get when I run eclipse:
Failed to load the JNI shared library "C:\Program Files\Java\jre7\bin\client\jvm.dll".
And this is what's in my eclipse.ini:
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product org.eclipse.epp.package.standard.product
--launcher.defaultAction openFile
--launcher.XXMaxPermSize 256M
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jre6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
I'm guessing it has something to do with the ini or me being stupid, but I would really appreciate some help! None of the other solutions I've tried have worked for me.
Thanks in advance!
In looking at path that it is looking for the JNI shared library, and the eclipse.ini, the JNI is complaining that it's not in the java/jre7, but your ini is using javaw.exe from java/jre6. Did you validate both of these paths? another thing would be to get them both using the same thing.
Also from my other comment, are you using the same trio of OS, Eclipse, and Java. You want to make sure that all three are the same, being on 64bit you can still use 32bit Eclipse & Java though.
Working pairs of OS, JDK and Eclipse
32-bit
32-bit OS
32-bit JDK
32-bit Eclipse
OR
64-bit OS
32-bit JDK
32-bit Eclipse
64-bit
64-bit OS
64-bit JDK
64-bit Eclipse
Download the proper JDK
Make sure that you have downloaded the proper JDKs and JREs
Download the Java SE JDK 8
Editing eclipse.ini
If this is not the problem or it still fails, make sure to edit your eclipse.ini
Make sure you add:
-vm
-C:\Your\Path\To\Java\JDK\bin
after
org.eclipse.platform
For instance, my eclipse.ini is like this:
-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
256M
-showsplash
org.eclipse.platform
-vm
C:\Program Files\Java\jdk1.8.0_11\bin
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
Your eclipse.ini seems fine, but I just put mine up just in case. I had the exact same problem and it took me a couple of hours to figure it out.
I hope I was able to help you.
I had the same problem: in my case everything was in fact 64-bit - 64-bit OS, 64-bit Eclipse and 64-bit JRE in use, so there was some confusion as to the origins of the issue...
What helped was correcting environmental variables JAVA_HOME and PATH - and pointing them directly to
.../My/Java/Location/bin
instead of
.../My/Java/Location
So it seems like in you case the line specifying Java version in your eclipse.ini file should be:
-vm
C:\Program Files\Java\jre6\bin

When running Eclipse: java was started by returned exit code=13

I am trying to download Eclipse to start making some apps. I downloaded the launcher from:
https://developer.android.com/sdk/index.html#download
I then moved the Eclipse file over to program x86.
I also updated the Eclipse file so that it changes the directory where it finds my JRE file. I will attach the file code I have so far.
Eclipse and Java are both 64
Any help will be amazing!
/-------------------------------------------------------------------------------
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
-vm
C:\Program Files (x86)\Java\jre7\bin\java.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
/-------------------------------------------------------------------------
Thank you!
Can you post your eclipse.ini file?
It may just be the way the error shows (and not how it is written in the eclipse.ini file), but there is text in Eclipse.ini (Specifying the JVM) that says the following:
The -vm option and its value (the path) must be on separate lines.
The value must be the full absolute path to the Java executable, not just to the Java home directory.
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM
#Developer SuRu it is right
And this link explain easily how can do this
Java was started but returned exit code=13 [FIXED]
Or see this Answer :
Add the java 32-bit version path to AptanaStudio3.ini

Categories

Resources