从收藏夹工具栏java.lang.ClassNotFoundException启动Eclipse时出错:org.eclipse.core.runtime.adaptor.EclipseStarter

时间:2019-02-01 19:57:18

标签: java eclipse-cdt ubuntu-18.04

当我从目录运行Eclipse CDT 2018-12时,它运行得很好:

/家庭/法提赫/蚀/ CPP-2018-12 /蚀/蚀

当我添加非常相同的,即蚀的最近开始会话,最爱工具栏,我无法通过点击图标蚀对收藏夹工具栏启动。

我的问题是,如何仍然能够通过解决这些错误(或此错误)从收藏夹工具栏开始。

我收到以下错误消息:

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

    !SESSION Fri Feb 01 20:22:51 CET 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-02-01 20:22:51.266
!MESSAGE Exception launching the Eclipse Platform:
!STACK

当我打开日志消息可以发现如下结果:

java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    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)

我还遵循了thisthis其他线程的内容。但是,这也不能解决我的问题。因此,它也不是这两个线程的两倍。只是为了完整性,我还想添加的config.ini和的eclipse.ini文件的以下内容:

config.ini

#This configuration file was written by: org.eclipse.oomph.p2.internal.core.AgentImpl
#Fri Feb 01 19:51:30 CET 2019
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=file\:/home/fatih/.p2/pool/plugins/org.eclipse.platform_4.10.0.v20181206-0815
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
osgi.bundles.defaultStartLevel=4
eclipse.application=org.eclipse.ui.ide.workbench
osgi.instance.area.default=@user.home/workspace
osgi.bundles=reference\:file\:/home/fatih/.p2/pool/plugins/org.eclipse.equinox.simpleconfigurator_1.3.200.v20181101-1115.jar@1\:start
eclipse.p2.data.area=file\:/home/fatih/.p2/
eclipse.p2.profile=_home_fatih_eclipse_cpp-2018-12_eclipse
osgi.framework=file\:/home/fatih/.p2/pool/plugins/org.eclipse.osgi_3.13.200.v20181130-2106.jar
osgi.framework.extensions=reference\:file\:/home/fatih/.p2/pool/plugins/org.eclipse.osgi.compatibility.state_1.1.300.v20181116-1550.jar
eclipse.buildId=4.10.0.I20181206-0815

的eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
--launcher.library
/home/fatih/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.900.v20180922-1751
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-11-openjdk-amd64/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

1 个答案:

答案 0 :(得分:0)

问题与 Eclipse 版本有关,下载 2020-12 version 并导航到下载文件夹并使用以下命令解压缩文件:

tar -xvf eclipse-inst-jre-linux64.tar.gz

现在进入 eclipse-installer 文件夹并输入:

./eclipse-inst

这将提示安装程序,您可以继续安装。