Problem
An ADT that runs Android, that is, eclipse error: Failed to load the JNI shared Libraryc:\program Files (x86) \java\jre6\bin\client\ jvm.dllfailed to load the JNI shared library
The background is:
1. It has been able to operate normally, that is, the JRE6 has been installed properly.
2. The JRE6 was later removed.
3. Just went to reinstall the JRE6, the result is still wrong.
4. And already determined: C:\Program Files (x86) \java\jre6\bin\client\jvm.dll is present.
"Resolution Process"
1. Now find a way to figure out why it is still not working. Do you need to restart the computer before you can???
2. Go to a casual look at the current Eclipse configuration: D:\tmp\tmp_dev_root\android\adt-bundle-windows\eclipse\ Eclipse.ini:-dosgi.requiredjavaversion=1.6 clearly requires Java to be version 1.6.
3. Reference: http://aquilo.diandian.com/post/2012-05-27/21832516 feel not much help.
4. Also refer to: http://dongdong1314.blog.51cto.com/389953/490211 again to confirm the pre-installed JDK, is Jdk-6-windows-amd64.exe is indeed 64-bit. The result is still not good.
5. Reinstall Jdk-6-windows-amd64.exe and try again.
6. I remember it. There must be something wrong with that. Because the above hint is C:\Program Files (x86) \ means that Eclipse wants 32-bit java. So, here, it seems to still need to find out, is not where the environment variable, or the registry, the residue of this path, to remove, update to the latest C:\Program files\ Java path can be.
7. Sure enough, in the PATH environment variable, you see that there are two Java-related paths: C:\Program Files (x86) \java\jre6\bin: It was previously added, it is estimated that the JRE was added after the installation of C:\Program files\ Java\jdk1.6.0\bin: It's easy to add it manually after you've just installed the JDK. Remove the old path First: C:\Program Files (x86) \java\jre6\bin the problem remains.
8. Finally found, the original is, environment variables: Java_home=c:\program Files (x86) \java\jre6 So, always find the corresponding value, now change it to: Java_home=c:\program files\java\ jdk1.6.0 and, path, also already have:%java_home%\bin So, should be able. To try it, sure enough, you can run eclipse, here's ADT: can run eclipse
Summary
When running Java-based stuff, here is eclipse (ADT for developing Android), if it appears: Failed to load the JNI shared Libraryc:\program Files (x86) \java\jre6\ Bin\client\jvm.dll and so on, it's simple,
First go to see, the corresponding path, whether it really exists jvm.dll if not, it is obvious that you need to install the corresponding version of their own to the Oracle website to download, the corresponding version of the JRE or JDK such as mine is, x64 Win7, Downloaded: Jdk-6-windows-amd64.exe
Check to see if the JAVA environment variable is normal: Java_home: It should be your JRE or JDK installation path like me here, 64-bit Win7, installed 64-bit JDK 6, so after installation, the corresponding path is: C:\Program files\java\ The jdk1.6.0 Path:path should contain the Java bin directory, similar to C:\Program Files (x86) \java\jre6\bin
Hint: But because already set up java_home, so can more general write as%java_home%\bin in addition, hint: 64-bit (Win7) system, corresponding software installation directory: 32-bit software, installed by default to: C:\Program Files (x86) \ 64-bit software, installed by default to: C:\Program Files
Originally from: http://www.crifan.com/eclipse_failed_to_load_the_jni_shared_library_jvm_dll/
java-adt:failed to load the JNI shared library perfectly solves