you need a
i have experienced all of the eclipse errors and this is one of them. the problem is eclipse 64-bit version. download the 32-bit version and launch it.
i had the same problem. with 64bit os all should be 64bit. java and eclipse. i tried all the methods in stackoverflow and also in youtube. non of them worked for me untill i found this easy method.
i installed 64bit java form cnet download and the problem was automatically fixed. i mentioned the source because it is too easy to google and go to first cnet lint rather than oficial site if you are a new bee.
p.s. if you have android adt bundle and tried to open eclipse from it and got the same error, you can fix that problem too with this method.
the easiest solution is to include a specific jre in eclipse.ini:
with this, you can start almost any eclipse version
this error we are getting because of different java version download 32-bit version.
installing jdk 1.8._91 (mixed mode) is another solution for this!
this happens because of the way the windows paths interact. your 32-bit jre is listed before your 64-bit version. since javaw.exe is named the same for both 32 and 64 bit versions, it tries the first one it finds. change the order in your path environmental variables, so the 64-bit version higher on the list than the 32-bit, and it will work correctly.
on the download page of eclipse, it should be written "jre 32 bits" or "jre 64 bits" and not "windows 32 bits" or "windows 64 bits".
be sure to use the correct version compatible with your jde, as answered previously.
use the elipse site itself.
the above link had an older 3.6 eclipse which then failed to update itself due to eclipse bug #317785.
my solution was to just install 32-bit java alongside 64-bit - this allowed the zend installer to work.
it's depressing that amount of java / eclipse cruft one has to go through to get a php ide.
in my case, i tried to launch java from the command prompt and got this error
error: could not open "c:\windows\jre\lib\amd64\jvm.cfg"
it meant "java" was looked for in the path starting at this wrong directory. deleting the folder c:\windows\jre\ solved the issue
make sure you are starting eclipse with administrator rights.
if you use whole 64-bit trio and it still doesn't work (i've come to this problem while launching android monitor in intellij idea), probably wrong jvm.dll is being used opposed to what your java expects. just follow these steps:
find the jvm.dll in your jre directory:
find the jvm.dll in your jdk directory:
jvm.dllfrom jre drectory into your jdk directory and overwrite the jvm.dll in jdk.
don't forget to make a backup, just in case. no need to install or uninstall anything related to java.
the same occurred to me. i had 64-bit eclipse, but my jdk was 32-bit. so i installed the 64-bit version and it's ok right now.
i'm not sure why but i had the jre installed into my c:\windows directory and java.exe and javaw.exe inside my windows\system32 directory.
obviously these directories were getting priority even after adding the -vm flag to my eclipse.ini file.
delete them from here fixed the issue for me.
thank you misterfrb, i realised that eclipse was giving this error, because i had just installed oracle 10g developer suite, and it was looking for the
jvm.dll file in the
c:\devsuitehome_1 folder (i must have opted to install jdk again along with developer suite).
after removing the devsuitehome lines from the paths variable and adding the correction location for 64-bit
jvm.dll (not sure if this was necessary, didn't try without), eclipse worked again, and developer suite still does too.
downloaded 64 bit jvm from site and installed it manually and updated the system path variable. that solved the issue.
- default jvm is installed in my system was in "c:\program files
- manually installed jvm got installed in "c:\program files\java\jre7" and after updating this pate to system path variable it worked.
simple, i have a 64-bit os, 32-bit eclipse and both jdk 32 & 64 installed... i just uninstalled the 64-bit jdk and eclipse is working fine..
i had the same issue after upgrading from java 6 to java 7. after i removed java 6 (64 bit) and reinstalled java 7 (64 bit), eclipse worked. :)
it is crucial to add the -vm parameter and its value on 2 lines at the beginning of the eclipse.ini
-vm c:\program files\java\jdk1.7.0_45\bin\javaw.exe
you have change proper version of the java_home and path in environmental variables.
i want to previde another solution for this error, especially for who want to use 32-bit and 64-bit eclipse in one system.
eclipse will startup using the jre/jdk in
jre sub-directory if it exists. (sts or other eclipse based ide also support this feature...)
the solution is create directory junction using
mklink.exe command which exist in windows vista or newer version (junction.exe offer similar function for windows 2000/xp)
open the command line windows and exeute following command:
mklink /j "$eclipse-home/jre" "$jdk_or_jre_home"
of course, if the eclipse is for 64-bit windows, the architecture of
jdk/jre must be the same.
eclipse for windows x86_64is installed in d:\devtool\eclipse
jdk for windows x64is installed in c:\program files\java\jdk1.8.0
the command for creating the
jre folder will be:
mklink /j "d:\devtool\eclipse\jre" "c:\program files\java\jdk1.8.0"
btw, delete directory junction will not delete any file. if you create a wrong link, you can delete it using file explorer or
yes, just make sure your versions of eclipse and jdk are both 64-bit. just to make sure everything is correct uninstalled jdk and install it in program files and not in program files (x86). at least that resolved my problem.
just check the path environment variable. in my computer - > properties -> advanced system settings -> environment variables -> (left upper window "user variables for "some name of pc"" ) just check the path variable. if it doesn't exist create it with the following -- > c:\program files (x86)\java\jre7\bin <--
i was faced with the same problem after had updated my eclipse. i've found that the path asked 64-bit version, but i had the 32-bit in dif path. it was helpful for me. p.s.: i have a 64-bit os, 32-bit jre and 32-bit eclipse. all works fine :)
you should uninstall all old [jres] and then install the newest one... i had the same problem and now i solve it. i've:
better install jre 6 32 bit. it really works.
one of the easy ways to resolve it is to copy the
jre folder from installed the jdk into the eclipse installation folder. make sure that jdk you copy from is the same architecture as your eclipse installation.
i had to configure my machine that way, because i run both eclipse and appcelerator titanium studio on my machine. the studio needs 32-bit java, while eclipse needs 64-bit.
alternatively, get the same "bit" version of jre and eclipse and then create a new shortcut with the below target (replace the installed jre and eclipse location/path):
"c:\studio\eclipse.exe" -vm "c:\program files\java\jre7\bin\server\jvm.dll" eclipse.vm="c:\program files\java\jre7\bin\server\jvm.dll" java.home="c:\program files\java\jre7" java.runtime.version=1.7.0
that should do the trick.
you can solve that problem as many other replicated. you need that eclipse and the jdk be 32-bits or both on 64-bits. the architecture of the os doesn't matter while the others remains on the same type of arquitecture.
as many folks already alluded to, this is a 32 vs. 64 bit problem for both eclipse and java. you cannot mix up 32 and 64 bit. since eclipse doesn't use
java_home, you'll likely have to alter your path prior to launching eclipse to ensure you are using not only the appropriate version of java, but also if 32 or 64 bit (or modify the ini file as jayath noted).
if you are installing eclipse from a company-share, you should ensure you can tell which eclipse version you are unzipping, and unzip to the appropriate program files directory to help keep track of which is which, then change the path (either permanently via (windows) control panel -> system or set
path=/path/to/32 or 64bit/java/bin;%path% (maybe create a batch file if you don't want to set it in your system and/or user environment variables). remember, 32-bit is in program files (x86).
if unsure, just launch eclipse, if you get the error, change your path to the other 'bit' version of java, and then try again. then move the eclipse directory to the appropriate program files directory.
the answers above me got me tempted so much, that i decided to dry run all the possible combinations with os, eclipse and jvm trio. anyway, whoever is digging down and reading my post, check the following as a hot spot (i am windows 7 user).
you understand program files and program file (x86) are two different folders... x86 stands for the 32-bit version of programs and the former is the 64-bit version.
if you have multiple versions of java installed with different bitness and release versions, which is bound to happen with so many open source ides, managers, administrative consoles, the best option is to set the vm argument directly in the
eclipse.inifile. if you don't, eclipse will go crazy and try searching itself which is not good.
sure, you need to have a compatible version of jdk and eclipse, but you also need to add in the
eclipse.ini file the below lines:
make them the first two lines of your
i had a similar problem. it was solved doing the following.
- move eclipse to program files (not to program files (x86)).
- remove the path to the 32-bit version of java from the 'path' environment variable.
i have both versions of java installed, but eclipse kept trying to use the 32-bit one.
for a missing
jvm.dll file, we can provide the path of the dll file in
eclipse.ini file as
here it is important to remove any space in the path and the double quotes. it worked for me when i removed the quotes and space.
i hope it helps someone.
i have multiple versions of java installed, both sun jdk & jrockit, both 32 bit and 64-bit, etc. and ran into this problem with a fresh install of 64-bit eclipse for java ee (juno).
what did not work:
64-bit trio as suggested by peter rader:
i'm using 64-bit eclipse on 64-bit os (windows 7).
i ensured sun jdk 7 64-bit was the default java version. when i typed "java -version" from command line (cmd.exe), sun jdk 7 64-bit was returned...
java version "1.7.0"
java(tm) se runtime environment (build 1.7.0-b147)
java hotspot(tm) 64-bit server vm (build 21.0-b17, mixed mode)
this did not resolve the problem for me.
what did work:
adding -vm option to eclipse.ini as suggested by jayesh kavathiya:
i added the following to eclipse.ini:
i did not have to uninstall any of the various versions of jdk or jre i have on my machine.
another option is:
create a shortcut to the eclipse.exe. open the shortcut and change the target to:
"c:\program files\eclipse\eclipse.exe" -vm "c:\program files\java\jdk1.7.0_04\bin\javaw.exe"
for your installation, make sure the locations point to the correct eclipse installation directory and the correct
javaw.exe installation directory.
(the 64/32 bit versions of eclipse and java need to be the same, of course.)
this error means that the architecture of eclipse does not match the architecture of the java runtime, i.e. if one is 32-bit the other must be the same, and not 64-bit.
the most reliable fix is to specify the jvm location in eclipse.ini:
c:\program files (x86)\java\jdk1.7.0_55\bin\javaw.exe
important: these two lines must come before -vmargs. do not use quotes; spaces are allowed.
i had same problem
i resolved it by installing 64 bit jvm from
make sure your
eclipse.ini file includes the following lines.
eclipse.ini for example:
use os and eclipse both 64 bit or both 32 bit keep same and config
eclipse.ini file can be found in your eclipse folder.
working pairings of os, jdk and eclipse:
32-biteclipse (32-bit only)
64biteclipse (64-bit only)
i had several jdks and jres installed.
each of them had their own entry in the path variable, all was working more or less.
judging from the path variables, some installations were completely useless, since they were never used. of course, the "inactive" javas could be referenced manually from within eclipse if i needed, but i never did that, so i really did not need them. (at least i thought so at that time...)
i cleaned up the mess, deinstalled all current java's, installed only jdk + jre 1.7 64-bit.
one of the eclipse 'installations' failed afterwards with the
failed to load the jni shared library and a given path relative to the fresh installed jdk where it thought the
jvm.dll to be.
the failing eclipse was the only one of all my ides that was still a 32-bit version on my otherwise all-64-bit setup.
adding vm arguments, like so often mentioned, in the
eclipse.ini was no use in my case (because i had only the wrong jdk/jre to relate to.)
i was also unable to find out how to check if this eclipse was a 32-bit or 64-bit version (i could not look it up in the task manager, since this eclipse 'installation' would not start up. and since it had been a while since i had set it up, i could not remember its version either.)
- Failed to load the JNI shared Library (JDK)
- Eclipse: Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin\..\jre\bin\client\jvm.dll
- Eclipse - Failed to load the JNI shared library
- Eclipse: Failed to load the JNI shared library
- failed to load the JNI shared library "C:\Windows\system32\..\jre\bin\client\jvm.dll\" ECLIPSE
- Eclipse: Failed to load the JNI shared library "C:\Windows\system32\..\jre\bin\client\jvm.dll"
- RHEL Eclipse Failed to load the JNI shared library libjvm.so
- Eclipse error: Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
- Eclipse fails to start, gives - Failed to load the JNI shared Library
- 'Failed to load the JNI shared library "C:\Program Files\Java\jre7\bin\client\jvm.dll" '
- Failed to load JNI shared library
- Eclipse run fail - Error code 13 and Failed to load JNI shared library
- Failed to load JNI shared library "C:\Program Files\Java\jdk\1.7.0_45\bin\...\jre\bin\server\jvm.dll"
- Failed to load JNI shared library "D:eclipse\jre\bin\server\jvm.dll"
- Falied to load the JNI shared library
- eclipse failed to load jni shared liberary
- eclipse failed to load jne shared library
- Eclipse: -Failed to load the JNI shared library-
- Eclipse reported "Failed to load JNI shared library"
- Failed to load JavaHL Library
- OSX Yosemite - JVM Shared library does not contain the JNI_CreateJavaVM symbol
- Eclipse: JVM shared library does not contain the JNI_CreateJavaVM symbol
- How to fix the Eclipse executable launcher was unable to locate its companion shared library for windows 7?
- Loading a dynamic C shared library using JNI which also loads another shared library
- The Eclipse Executable Launcher Was Unable To Locate Its Companion Shared Library
- the Eclipse executable launcher was unable to locate its companion shared library error message
- Eclipse: Product Export error: The Product executable launcher was unable to locate its companion shared library
- Why do I get the failed to load with Java version 1.7.0_45 with Eclipse with JBoss modules used
- JNI - Cannot load info library for OpenCV in Eclipse
- Eclipse fails to load AppTheme for the XML layout after the new project is created,Displays failed to find style corresponding
More Query from same tag
- Exported runnable JAR file from Eclipse doesn't seem to execute
- Migrating from Eclipse to AndroidStudio: Attribute has already been defined
- Adding dependent projects to eclipse grails project fails on run-app
- Crashlytics could not be initialized, API key missing from AndroidManifest.xml
- Eclipse android emulator debugging
- Groovy debugger out of sync
- hibernate3-maven-plugin Plugin execution not covered by lifecycle configuration Error in Eclipse
- Getting the path to current dynamic web project JAVA
- PyDev messing encoding settings when running Python script from inside Eclipse
- How to do static linking in Eclipse CDT?
- How to use eclipse project from github for Android development
- ClassNotFoundException for Eclipse project running a JBoss 7 server using C3P0
- JBoss 7 Statup Fails
- How to set the update interval of Eclipse Che?
- How not load a library into a entry point?
- error , Symbol 'vector' could not be resolved
- How to get the absolute path of a file in my project (and not of a file stored in a temporary folder)
- Eclipse has bunch of errors when creating an Android project
- Java JPA EclipseLink databaseException
- Youtube videos in webView using Youtube API
- Help with Eclipse shortcuts in Visual Studio C++ 2010
- Do I need ADT and NDK for android if I already have it as plugins for Eclipse?
- setting up Eclim to support PHP
- Appium with Android Studio
- Add Body to IMethod
- SVN with Eclipse Integration
- Eclipse shows errors but project compile fine
- Add button to java code in Android / Eclipse
- Eclipse Error After Exporting
- How can I set a data set parameter using two/combined parameters 1 date and 1 time with condition