AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1041197
Accepted
parsa2820
parsa2820
Asked: 2018-05-29 05:26:23 +0800 CST2018-05-29 05:26:23 +0800 CST 2018-05-29 05:26:23 +0800 CST

Eclipse 没有启动

  • 772

我新安装了 Eclipse 形式的官方 Ubuntu 存储库(sudo apt install 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 <[email protected]>
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 <[email protected]>
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。

software-installation eclipse
  • 3 3 个回答
  • 6759 Views

3 个回答

  • Voted
  1. Avansot
    2019-03-17T14:27:00+08:002019-03-17T14:27:00+08:00

    我建议更轻松和舒适:

    sudo apt --remove purge eclipse

    或者

    sudo apt --remove purge netbeans

    并安装表格 SNAP:

    sudo snap install eclipse --classic

    或者

    sudo snap install netbeans --classic

    • 4
  2. karel
    2018-05-29T09:51:38+08:002018-05-29T09:51:38+08:00

    我建议安装更新的 Eclipse snap 包(Eclipse IDE for Java Developers 版本 4.7.3):

    sudo snap install eclipse --classic  
    

    您可以将 snap 包与 apt 包一起安装以尝试它们,然后如果您更喜欢 snap 包,请删除 Eclipse apt 包。

    • 2
  3. Best Answer
    Sugandha Jain
    2020-01-11T02:03:23+08:002020-01-11T02:03:23+08:00

    我收到了这个错误:

    $ sudo snap install eclipse --classic  
    error: snap "eclipse" has "install-snap" change in progress
    

    尝试了很长时间来解决它,最后这对我有用:

    运行命令:

    $ snap changes
    

    并检查其输出是否显示“Doing”,如下所示:

    ID   Status  Spawn               Ready  Summary
    92   Doing   today at 15:17 IST  -      Install "eclipse" snap
    

    如果是,您可以使用命令中止此操作:

    sudo snap abort 92
    

    其中,92 是 ID。

    然后,如果您再次运行 install 命令,它工作正常。

    sudo snap install eclipse --classic
    

    希望这可以帮助某人。

    • 2

相关问题

  • 如何在没有 root 访问权限的情况下安装软件包?

  • 设置 LAMP 堆栈的最简单方法是什么?

  • 我应该在哪里安装 sagemath?

  • How do I install Adobe Flash player?对于 11.10 及更高版本明确修复 11.10 上的 64 位 Flash

  • 如何设置软件中心为非 root 用户安装软件?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve