如何在 Ubuntu 上安装 Eclipse EE?

如何在 Ubuntu 上安装 Eclipse EE?

我尝试在通过 ubuntu 商店下载的常规 eclipse 上安装 eclipse EE - 安装后 eclipse 无法打开。
尝试通过 .deb 安装 eclipse ee,"An error has occurred. See the log file /home/v/Downloads/eclipse/configuration/1631686693143.log."出现错误,我尝试从工作区中删除 .metadata,没有用。ubuntu
20.04 用户不使用 Eclipse EE 吗?

步骤和错误的顺序

  • 打开从网上下载的eclipse ee
  • 错误:发生错误。
    请参阅日志文件 /home/v/Downloads/eclipse/configuration/1631688631777.log。
  • 1631688631777.日志:
!SESSION 2021-09-15 12:20:31.324 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=11.0.11
java.vendor=Ubuntu
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2021-09-15 12:20:32.488
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503 [1]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

!ENTRY org.eclipse.osgi 4 0 2021-09-15 12:20:32.503
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar/ was not resolved.

!ENTRY org.eclipse.osgi 2 0 2021-09-15 12:20:32.528
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2021-09-15 12:20:32.529
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503 [1] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2021-09-15 12:20:32.529
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4

!ENTRY org.eclipse.osgi 4 0 2021-09-15 12:20:32.532
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

答案1

您是否将下载的 eclipse 文件复制到了 ubuntu-store 安装的版本?这不是一个好主意。

您可以下载的不同版本的 eclipse 实际上是同一个版本的 eclipse,只是安装了不同的插件和附加组件。因此,您可以

答案2

为了重现这种情况,我建议使用以下方法安装 Eclipse Java EEUbuntu 制作

sudo add-apt-repository ppa:lyzardking/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

umake ide eclipse-jee

答案3

感谢大家的评论和回答。安装终于成功了。我不知道具体是什么原因,但以下是我遵循的步骤,以供后人参考。

经过多次安装和卸载后,我遵循本教程之后我收到一个不同的错误,关于缺少依赖项。

我再次通过终端清除并删除了 eclipse,并尝试通过官方网站安装 eclipse,这次成功了。

我认为这没有什么区别,但这次我在 downloads/ 文件夹的新目录中安装了 eclipse。

我认为由于尝试多次安装,每次尝试我都满足了不同的要求,例如指定 jvm,......我不知道。

相关内容