Error starting eclipse exit code=13 - java

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

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.

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

"Could not create the JVM" error at Eclipse startup

I've got error like this:
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.v20120913-144807
-product com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize 256M
-showsplash com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
--launcher.defaultAction openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
-vm C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe
how to fix this problem?
you can start eclipse this way instead:
eclipse -vm <path to java>
In the eclipse.ini file change the following
--launcher.XXMaxPermSize
900m
from
--launcher.XXMaxPermSize
512m
Also check out this link and mostly this error comes due to the hardware issues like the RAM.
same thing happened with me when i updated my jre7 , what worked for me was updating the new path in windows environment variables,
add a new system variable :
Variable Name: PATH
Variable value: C:\Program Files\Java\jdk1.7.0_51\bin
hope this helps..:)

Eclipse Kepler not starting with specified vm

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..

Categories

Resources