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
Related
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
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
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..:)
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..
I had Eclipse Juno installed on my Win 8 laptop. I then went to http://ninite.com/ and along with about 10 other applications, chose Eclipse and JDK. I ran the Ninite installer and after I came back my eclipse was closed. I've restarted my computer, but I cannot open my eclipse anymore. I don't know where Eclipse was located before, but searching my C drive, I see that an eclipse folder exists on the root of the C drive. I click it, and click eclipse.exe and nothing happens. Any ideas at all?
Eclipse.ini
-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
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Running eclipse.exe from cmd doesn't produce any output.
C:\eclipse>eclipse.exe
HIT ENTER
C:\eclipse>
Grab a copy of Eclipse from the eclipse.org site and backup/delete the eclipse folder on your hard-drive. then extract the bundle you got from Eclipse.org in its place.
Try looking at the eclipse log-files.
http://wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F