Reputation: 776
Every time I try to start Eclipse, it says
Failed to load the JNI shared libraby "C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll"
I have no clue why this happens, because I reinstalled JDK, JRE and Eclipse multiple times. All the 64 bit version (I've got Windows 7 64 bit)
Upvotes: 5
Views: 21317
Reputation: 441
If eclipse is 32bit then, eclipse.ini file specify -vm C:\Program Files (x86)\Java\jre\bin\javaw.exe
If eclipse is 64bit then, eclipse.ini file specify -vm C:\Program Files\Java\jdk\jre\bin\javaw.exe
Summary: specify compatible java version path ( 32 bit or 64 bit ). -vm %JAVA_HOME%\jre\bin\javaw.exe
Upvotes: 0
Reputation: 403
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
Upvotes: 0
Reputation: 1630
Just try to download this if you have 64 bit OS windows.Hope it will work :)
Upvotes: -1
Reputation: 12160
If you have installed all 64 bit version of Eclipse and JDK, you can check your system environment variable. Probably you set on old JAVA_HOME path pointing to
"C:\Program Files (x86)\Java"
Upvotes: 1