问题描述
已安装eclipse和Java8.但这不起作用.当尝试运行它时,发生以下错误.
Installed eclipse and Java8. But it isn't working.When try to run it following error occur.
发生了错误.看日志文件/home/shield/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1526718159168.log
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)**
推荐答案
Ubuntu 18.04遇到了同样的问题.不知道具体的答案,但是直接从eclipse.org(C/C ++安装程序)重新安装eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz进行得很好.没有更多的问题.在Ubuntu 16.04上安装,突触安装也没有发现问题.因此,只需在最新的Ubuntu中使用eclipse安装程序即可.
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.
这篇关于eclipse ubuntu 18.04安装java.lang.ClassNotFoundException:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!