eclipse ubuntu 18.04 installation java.lang.ClassNotFoundException:

混江龙づ霸主 提交于 2019-12-24 00:16:31

问题


Installed eclipse and Java8. But it isn't working. When try to run it following error occur.

An error has occurred. See the log file /home/shield/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1526718159168.log

I checked the log file and found these lines:

**    !ENTRY org.eclipse.equinox.launcher 4 0 2018-05-19 13:40:07.262
   !MESSAGE Exception launching the Eclipse Platform:
   !STACK
   java.lang.ClassNotFoundException: 
    org.eclipse.core.runtime.adaptor.EclipseStarter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)**

回答1:


Just went through same issue with Ubuntu 18.04. Don't know specific answer but reinstalling directly from eclipse.org (C/C++ installer) eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz went well. No more issues. Installing at Ubuntu 16.04, no issues found with synaptic installation either. So, just use eclipse installer in newest Ubuntu.



来源:https://stackoverflow.com/questions/50423322/eclipse-ubuntu-18-04-installation-java-lang-classnotfoundexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!