1. Determine the current JDK's number of bits
# Java-versionjava Version "1.6.0_26" Java (tm) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot (tm) Server VM (Buil D 20.1-B02, Mixed mode) # If it is 64 bits, the last line will have the 64-bit#java-versionjava version "1.6.0_26" Java (TM) SE Runtime Environment (build 1.6.0_26-B03) Java HotSpot (TM) 64-bit Server VM (build 20.1-b02, Mixed mode)
2. If eclipse starts the Times fail to load the JNI shared library, this is the case where the number of JDK bits required by eclipse is inconsistent with the number of JDK bits currently called by Eclipse and needs to be adjusted. There are 2 scenarios:
# A. Adjust java_home to the correct JDK directory, i.e. modify Java_home, path etc # b. Modify the Eclipse.ini file under the Eclipse installation directory, using the-VM parameter to indicate where the javaw.exe is needed directory-vmc:\developworks\lib\jdk\jdk1.7.0_67\bin\ Javaw.exe
Eclipse's error response when Windows coexists with multiple single-digit, different JDK