Failed to load the JNI shared library jvm.dll


When you try running Eclipse IDE and you get the below error,

Failed to load the JNI shared library "C:/JAVA/JDK6/bin/client/jvm.dll"

The reason for this error is because you may be having a miss-match between 32-bit and 64-bit setups,

64-bit Operating System: 64bit Eclipse and 32-Bit JDK or JRE Setup

or,

64-bit Operating System: 32bit Eclipse and 64bit JDK or JRE Setup

So, you should have Eclipse + JDK + JRE all either 64-bit or 32-bit

How to check the Java Version installed ?

To check what Java version (64/32-bit) is installed on the system, open Command Prompt and run the command "java -version"

How to check Eclipse Version installed ?

You can check installed eclipse version by looking into eclipse.ini file and look for x86_64 for 64bit if you just find x86 it means that you have 32bit eclipse installed.

Conclusion :

Windows Operation System, JRE, JDK, and Eclipse all must be either 32bit or 64bit to resolve this issue. If not do reinstall the component to 64/32bit appropriately.

Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency