2016-08-13 33 views
1

我的Eclipse有問題:當我訪問某些類時,它不會崩潰並顯示錯誤消息。我只打開一個類文件,向下滾動一下或輸入最多一行,Eclipse無故崩潰。有沒有人有辦法解決嗎?當我訪問特定的類時,Eclipse會一直崩潰

這是我的配置文件:

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 
--launcher.library 
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 
512M 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
512m 
--launcher.defaultAction 
openFile 
--launcher.appendVmargs 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-Xms256m 
-Xmx1024m 

日誌:

!SESSION 2016-08-13 15:56:27.837 ----------------------------------------------- 
eclipse.buildId=4.4.2.M20150204-1700 
java.version=1.8.0_92 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product 

This is a continuation of log file C:\Users\Andrew\workspace\.metadata\.bak_0.log 
Created Time: 2016-08-13 15:56:29.116 
!SESSION 2016-08-13 15:56:27.837 ----------------------------------------------- 
eclipse.buildId=4.4.2.M20150204-1700 
java.version=1.8.0_92 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product 

!ENTRY org.eclipse.core.resources 2 10035 2016-08-13 15:56:29.119 
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. 

!ENTRY org.eclipse.egit.ui 2 0 2016-08-13 15:56:36.126 
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level 
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. 
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in 
this system level configuration. The Git installation location can be configured on the 
Team > Git > Configuration preference page's 'System Settings' tab. 
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. 

!ENTRY org.eclipse.egit.ui 2 0 2016-08-13 15:56:36.239 
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git 
user global configuration and to define the default location to store repositories: 'C:\Users\Andrew'. If this is 
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and 
EGit might behave differently since they see different configuration options. 
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. 
!SESSION 2016-08-13 15:57:24.177 ----------------------------------------------- 
eclipse.buildId=4.4.2.M20150204-1700 
java.version=1.8.0_92 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product 

!ENTRY org.eclipse.core.resources 2 10035 2016-08-13 15:57:25.530 
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. 

!ENTRY org.eclipse.egit.ui 2 0 2016-08-13 15:57:32.998 
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level 
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. 
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in 
this system level configuration. The Git installation location can be configured on the 
Team > Git > Configuration preference page's 'System Settings' tab. 
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. 
+0

你有一個日誌文件通常可以在'workspace /.metadata/.log ' – SomeDude

+0

已編輯...我希望這已經足夠了 – AndreiXwe

+0

我聽說過有關特定Java版本的這種問題。我可能會使用1.8更新92。它是否與另一個版本一起工作? – mm759

回答

0

我有同樣的問題。

我通過在幫助 - >檢查更新下執行Eclipse更新來解決它。 作爲JRE在Java 1.8.0_92上運行。

我的eclipse.ini:

-startup 
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740 
-product 
org.eclipse.epp.package.jee.product 
--launcher.defaultAction 
openFile 
-showsplash 
org.eclipse.platform 
--launcher.defaultAction 
openFile 
--launcher.appendVmargs 
-vmargs 
-Dosgi.requiredJavaVersion=1.8 
-XX:+UseG1GC 
-XX:+UseStringDeduplication 
-Dosgi.requiredJavaVersion=1.8 
-Xms256m 
-Xmx4096m 

如果不解決這個問題對你來說,檢查正在使用打開文件的編輯器:右鍵點擊文件 - >「打開方式」,你會看到標準的編輯器。這個問題應該與編輯。當然,你可以嘗試用另一個編輯器打開,如果Eclipse是stil崩潰,它不是編輯器的問題...

相關問題