2012-12-01 35 views
0

一篇:Ubuntu的,以這種方式安裝了Eclipse:Eclipse IDE的運行錯誤/.metadata/.log

tar -zxvf eclipse.XX.YY.tar.gz 
mv eclipse.XX.YY ~/opt 
sudo nano /usr/share/applications/eclipse.desktop 

[Desktop Entry] 
Name=Eclipse 
Type=Application 
Exec=/home/user/opt/eclipse/eclipse #watch the directory! 
Terminal=false 
Icon=/home/usr/opt/eclipse/icon.xpm 
Comment=Integrated Development Environment 
NoDisplay=false 
Categories=Development;IDE 
Name[en]=eclipse.desktop 

cd /usr/local/bin 
ln -s /opt/eclipse/eclipse 

(我以前有一個工作區)運行Eclipse拋出的錯誤,閱讀工作區/。元/ .LOG 有人建議刪除:/路徑,以工作區/ .metadata/.plugins/org.eclipse.core.resources 喜歡這裏 http://bugsanddebugs.blogspot.com/2010/06/when-eclipse-says-error-has-occurred.html 但運行 日食-clean 給出了同樣的錯誤。 這幾乎窮盡文章幫一點點...... http://www.eclipsezone.com/eclipse/forums/t99010.html 但仍然無法理解的錯誤:

~/workspace$ egrep -A 2 "Caused by" ~/workspace/.metadata/.log 
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.equinox.console.command.adapter.Activator.start() of bundle org.eclipse.equinox.console. 
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734) 
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) 
-- 
Caused by: org.osgi.framework.BundleException: Exception in org.apache.felix.gogo.command.Activator.start() of bundle org.apache.felix.gogo.command. 
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734) 
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) 
-- 
Caused by: java.lang.NoClassDefFoundError: org.apache.felix.gogo.command.OBR 
    at java.lang.Class.initializeClass(libgcj.so.12) 
    at org.apache.felix.gogo.command.Activator.start(Activator.java:54) 
-- 
Caused by: java.lang.ClassNotFoundException: org.apache.felix.bundlerepository.Repository 
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) 
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) 
-- 
Caused by: java.lang.ClassNotFoundException: org.apache.felix.bundlerepository.Repository 
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) 
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) 

怎麼看這一切呢?

+0

遷移到滿載的gedit(感謝迷人的插件列表!)。但從現在開始使用SublimeText2。幾乎相同的功能可以在gedit中達到一些限制,但更喜歡崇高,因爲同事編程流程的一致性。謝謝大家! – boldnik

回答

0

嘗試將JRE文件夾複製到Eclipse文件夾。它可以解決這個問題。無論如何它都適用於我。 Eclipse無法啓動的原因是它始於舊版本的JVM。 查看此參考瞭解更多詳情:eclipse won't start