eclipse IDE运行错误read/.metadata/.log
Ubuntu之前,通过以下方式安装Eclipse:eclipse IDE运行错误read/.metadata/.log,eclipse,exception,ide,workspace,Eclipse,Exception,Ide,Workspace,Ubuntu之前,通过以下方式安装Eclipse: 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
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会抛出一个错误来读取workspace/.metadata/.log
有些人建议删除:/WORKSPACE/.metadata/.plugins/org.eclipse.core.resources的路径
像这里
但是跑步
日食清洁
给出了相同的错误。
这篇几乎详尽无遗的文章有点帮助。。。
但仍然无法理解错误:
~/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)
如何阅读所有这些?尝试将JRE文件夹复制到Eclipse文件夹。它可能会解决这个问题。不管怎么说,这对我来说很管用。 Eclipse无法启动的原因是它是从旧版本的JVM启动的。
有关更多详细信息,请参阅此参考资料:迁移到完整加载的gedit(感谢迷人的插件列表!)。但从现在开始使用SublimiteText2。在gedit中可以实现几乎相同的功能,但有一些限制,但由于同事编程流的一致性,因此更喜欢sublime。谢谢大家!