eclipse IDE运行错误read /.metadata/.log

qv7cva1a  于 2023-03-22  发布在  Eclipse
关注(0)|答案(2)|浏览(136)

前: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
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有些人建议删除:/YOUR PATH TO WORKSPACE/.metadata/.plugins/org.eclipse.core.resources like here http://bugsanddebugs.blogspot.com/2010/06/when-eclipse-says-error-has-occurred.html but running eclipse -clean gives the same error. This almost exhaustive article helped a little... http://www.eclipsezone.com/eclipse/forums/t99010.html but still can't understand errors:

~/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)

怎么读这些?

kuuvgm7e

kuuvgm7e1#

尝试将JRE文件夹复制到Eclipse文件夹。它可能会解决这个问题。无论如何,它对我有效。Eclipse无法启动的原因是它使用旧版本的JVM启动。请参阅此参考以了解更多详细信息:一个月一次

7gcisfzg

7gcisfzg2#

尝试删除configuration/org.eclipse.osgi文件夹。

相关问题