2016-06-19 67 views
0

這是我的eclipse.ini 文件錯誤:在eclipse無法創建Java虛擬機問題64位Windows 7

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212 
-product 
org.eclipse.epp.package.jee.product 
--launcher.defaultAction 
openFile 
--launcher.XXMaxPermSize 
128M 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
256m 
--launcher.defaultAction 
openFile 
--launcher.appendVmargs 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-Xms40m 
-Xmx512m 
-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll 

這是錯誤消息: 錯誤:無法創建Java虛擬機。

Java was started but returned exit code = 1

+0

把'!'符號每一個形象標籤之前顯示在屏幕上的圖像。 – surajsn

+1

'-vm'必須在*'-vmargs'之前*。參見[documentation](https://wiki.eclipse.org/Eclipse.ini):*'-vmargs'之後的所有行都作爲參數傳遞給JVM,所以eclipse的所有參數和選項必須在'-vmargs (就像在命令行中使用參數一樣)。*然後在「指定JVM」部分中說:*在其他特定於Eclipse的選項之後,必須出現'-vm'選項(例如'-product','--launcher。*'等),但是在'-vmargs'選項之前,因爲'-vmargs'之後的所有內容直接傳遞給JVM。*哇,文檔很有幫助。 – Andreas

+0

如果你有64臺機器,並且想要使用64位eclipse,請確保安裝在64位上的java也一樣。 – ares

回答

1

https://wiki.eclipse.org/Eclipse.ini文檔,將-vm-vmargs

-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-Xms40m 
-Xmx512m 
+0

它仍然顯示錯誤**失敗** **到** **加載** ** ** ** JNI ** **共享** **庫** **「C:\ Programme ** * *文件**(x86)\ Java \ jdk1.8.0_25 \ jre \ bin \ server \ jvm.dll ** @uuid –

+0

看看http://stackoverflow.com/questions/7352493/failed-to -load-the-jni-shared-library-jdk – Saravana

+0

明白了。解決了。謝謝@uuid –