Accepted answer

you need a 64-bit trio:

  • 64-bit os
  • 64-bit java
  • 64-bit eclipse


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.


you can install the 32-bit version of jdk on a 64-bit machine. see jdk 7 downloads.


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.


and for pdt users - avoid the zend download page - it doesn't have any 64-bit downloads linked.

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:

  1. find the jvm.dll in your jre directory: c:\program files\java\jre7\server\bin\jvm.dll

  2. find the jvm.dll in your jdk directory: c:\program files\java\jdk1.7.0_xx\jre\bin\server\

  3. copy the jvm.dll from 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.

  1. default jvm is installed in my system was in "c:\program files
  2. 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_64 is installed in d:\devtool\eclipse
  • jdk for windows x64 is 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 rmdir command.

rmdir "d:\devtool\eclipse\jre"


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][1] 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).

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

  2. 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.ini file. 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 eclipse.ini file.


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.


my eclipse.ini for example:

c:\program files\java\jdk1.6.0_32\bin\javaw.exe

use os and eclipse both 64 bit or both 32 bit keep same and config eclipse.ini.

your eclipse.ini file can be found in your eclipse folder.


working pairings of os, jdk and eclipse:

  • 32-bit os | 32-bit jdk | 32-bit eclipse (32-bit only)
  • 64-bit os | 32-bit jdk | 32-bit eclipse
  • 64-bit os | 64-bit jdk | 64bit eclipse (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.)

in case you use a newer jdk and a older jre you might be in for trouble, too, but then it is more likely a java.lang.unsupportedclassversionerror appears, iirc.

Related Query

More Query from same tag