ubuntu 18.04使用apt-get安装eclipse无法启动,报告如下错误:
打开日志文件,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 |
!SESSION Sat Mar 07 00:59:16 CST 2020 ------------------------------------------ !ENTRY org.eclipse.equinox.launcher 4 0 2020-03-07 00:59:16.150 !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) |
解决方法是使用 Snap 安装,执行命令如下:
1 |
$ sudo snap install eclipse --classic |