我从正式的Ubuntu存储库(sudo apt install eclipse)中新安装了eclipse。当我从发射器或终端运行它时,它不会启动并显示错误信息
An error has occurred. See the log file日志文件内容是:
!SESSION Mon May 28 17:52:17 IRDT 2018 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2018-05-28 17:52:18.099
!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:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
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)$ dpkg --status eclipse
Package: eclipse
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 99
Maintainer: Ubuntu Developers
Architecture: all
Version: 3.8.1-11
Depends: eclipse-jdt (>= 3.8.1-11), eclipse-pde (>= 3.8.1-11)
Description: Extensible Tool Platform and Java IDE
The Eclipse Platform is an open and extensible platform for anything and yet
nothing in particular. It provides a foundation for constructing and running
integrated software-development tools. The Eclipse Platform allows tool
builders to independently develop tools that integrate with other people's
tools so seamlessly you can't tell where one tool ends and another starts.
.
This package provides the whole Eclipse SDK that contains Eclipse Platform,
Java development tools and Plug-in Development Environment, including source
and both user and programmer documentation.
Original-Maintainer: Debian Orbital Alignment Team
Homepage: http://www.eclipse.org/
$ apt-cache policy eclipse
eclipse:
Installed: 3.8.1-11
Candidate: 3.8.1-11
Version table:
*** 3.8.1-11 500
500 http://ir.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://ir.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status它不提供任何其他错误或警告。我在Xubuntu 18.04。
发布于 2020-01-10 10:03:23
我得到了一个错误:
$ sudo snap install eclipse --classic
error: snap "eclipse" has "install-snap" change in progress我试了很久才解决这个问题,最后我终于解决了这个问题:
运行命令:
$ snap changes并检查其输出是否显示“正在执行”,如下所示:
ID Status Spawn Ready Summary
92 Doing today at 15:17 IST - Install "eclipse" snap如果是,您只需使用命令就可以中止此操作:
sudo snap abort 9292是身份证。
然后,如果您再次运行安装命令,它可以正常工作。
sudo snap install eclipse --classic希望这能帮上忙。
发布于 2019-03-16 22:27:00
我建议您更加轻松和舒适:
sudo apt --remove purge eclipse
或
sudo apt --remove purge netbeans
并安装SNAP表格:
sudo snap install eclipse --classic
或
sudo snap install netbeans --classic
发布于 2018-05-28 17:51:38
我建议安装Eclipse包,它也是最新的(面向Java开发人员的Eclipse 4.7.3版):
sudo snap install eclipse --classic 您可以在apt包旁边安装snap包,以便尝试它们,然后如果您更喜欢snap包,则可以删除Eclipse包。
https://askubuntu.com/questions/1041197
复制相似问题