簡體   English   中英

Eclipse無法在Ubuntu 12.04中啟動

[英]Eclipse not starting in ubuntu 12.04

我正在嘗試使用以下命令從終端啟動Eclipse

./eclipse -vm ~/jdk1.5.0_22/bin/java

但我收到以下錯誤

"An error has occurred. See the log file
      /.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1427693670657.log."

在檢查日志文件時,出現以下錯誤

ENTRY org.eclipse.osgi 4 0 2015-03-30 11:04:32.858
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.ui.ide.application" was unable to instantiate class "org.eclipse.ui.internal.ide.application.IDEApplication".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

我想我用所需的JDK版本1.5開始eclipse,但不知道為什么會發生此錯誤。 有人可以告訴我為什么會發生此錯誤嗎?

我的eclipse.ini文件在下面

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m            

請嘗試在eclipse.ini中添加虛擬機位置

-vm C:/程序文件/Java/jdk1.7.0_75/bin/javaw.exe

發生錯誤是因為我在不知不覺中刪除了eclipse引用/使用過的jre,並嘗試使用另一個目錄中存在的另一個jre版本來啟動它。 當我將所需的jre恢復到從中刪除的文件夾時,此問題得到解決。

-vm參數要求JRE位置在一行中。 例如

-vm
C:/Program Files/Java/jdk1.7.0_75/bin/javaw.exe

顯然,該路徑必須指向現有的Java安裝。 Java 1.5相當老,我不確定Eclipse是否仍在運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM