2013-11-01 51 views
0

我試圖安裝Java 7和添加行在啓動Eclipse,它提供了一個錯誤的「Java已啓動,但返回的退出碼= 13」

-vm 
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe 

到eclipse.ini文件後,啓動eclipse。仍然我收到錯誤「Java已啓動,但返回退出代碼= 13」。 enter image description here

我只是想知道如何啓動日食。即使我必須重新安裝eclipse,java,jre。 任何建議都可以!

我的eclipse.ini文件:

-startup 
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502 
-product 
org.eclipse.epp.package.jee.product 
--launcher.defaultAction 
openFile 
--launcher.XXMaxPermSize 
256M 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
256m 
--launcher.defaultAction 
openFile 
-vm 
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe 
-vmargs 
-Dosgi.requiredJavaVersion=1.5 
-Xms40m 
-Xmx512m 

在粘貼在eclipse文件夾我收到此錯誤的JRE:

enter image description here

+1

如果沒有作品出來,複製jre目錄到eclipse目錄,並刪除VM爭論並開始日食。 –

+0

@AbhijithNagarajan:請你詳細說明我應該複製哪條路徑? –

+1

完全刪除-vm參數(包括javaw.exe的路徑)。將存在於jdk1.7.0_45中的jre文件夾複製到eclipse.exe可用的eclipse文件夾中 –

回答

0

檢查您是否已經安裝了正確的Java您的操作系統需要。意思是,如果你正在運行一個64位的操作系統,那麼你需要64位的Java和32位的相同。

+0

我有一個64位的操作系統和64位的Java。 –

0

檢查eclipse.ini文件,並在vm選項(看here更多)的特定格式:

Note the format of the -vm option - it is important to be exact:

  • The -vm option and its value (the path) must be on separate lines.
  • The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
  • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.

另一件事是檢查JVM的是位版本(32/64)應該匹配位版本日食(32/64)。

2

所有您需要做的就是把新的JDK路徑的eclipse.ini

-vm
C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
or the your new jdk path.
make sure that you type the above just before the -vmargs and after the OpenFile

是解決我的問題

相關問題