天天看點

解決Failed to load the JNI shared library xxx/xxx/jvm.dll 錯誤

解決Failed to load the JNI shared library xxx/xxx/jvm.dll 錯誤

原因:jdk發生變化(新裝了32位jdk),eclipse在啟動時使用了 系統環境變量中的jdk路徑(32位).

解決:隻要把舊的64位的jre路徑指定給eclipse啟動檔案即可。

在eclipse.ini中,第一行增加

-vm

D:/Server/Java64/jre7/bin/javaw.exe

myeclipse2013的啟動依賴自身帶的jre環境

#utf8 (do not remove) -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700 binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe -install D:\Server\MyEclipse2013 -vmargs -Xmx512m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Dosgi.nls.warnings=ignore

eclipse的啟動 要求安裝jre,并首先考慮使用eclipse.ini指定的jre中的javaw.exe, 若找不到會在環境變量中的javaw.exe

plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform 256m --launcher.appendVmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m

需要注意的是,eclipse版本若是32位的,那麼jre也應該是32位的。也就是說要對應起來,不然無法啟動的。

開始做,堅持做,重複做

繼續閱讀