Neon:如何在jdk9上运行?

2023-12-11

刚开始玩 jdk9 - 一开始就卡住了:

  • 下载并解压 eclipse-java-neon-m4a-win32
  • 安装了 java 9 支持(由 dnd 来自市场)
  • 下载并安装jdk9u99(仅jdk,不是公共jre)

此时,我可以使用 jre/jdk(在 eclipse.ini 中使用/不使用 vm 参数)在我的默认 java(即 8u60)上运行 eclipse,并使用 java 9 支持。

下一步,我想使用 java 9 运行 eclipse:将 vm-arg 添加到 eclipse.ini,现在 eclipse 中止其启动并显示冗长的错误日志(ini 和日志如下所示)。

问题出在哪里?

My ini:

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20151021-1308.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.300.v20151013-1129
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
d:\java\jdk\190_ea\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

错误日志的顶部(> 900k)

!SESSION 2016-01-22 14:31:55.974 -----------------------------------------------
eclipse.buildId=4.6.0.I20151209-2300
java.version=9-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.equinox.common 4 0 2016-01-22 14:31:57.113
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.common [143]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

    at org.eclipse.osgi.container.Module.start(Module.java:429)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.ant.core 4 0 2016-01-22 14:31:57.175
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.ant.core [61]
  Unresolved requirement: Require-Bundle: org.eclipse.core.variables; bundle-version="[3.1.0,4.0.0)"
    -> Bundle-SymbolicName: org.eclipse.core.variables; bundle-version="3.2.800.v20130819-1716"; singleton:="true"
       org.eclipse.core.variables [88]
         Unresolved requirement: Require-Bundle: org.eclipse.core.runtime; bundle-version="[3.3.0,4.0.0)"
           -> Bundle-SymbolicName: org.eclipse.core.runtime; bundle-version="3.12.0.v20151104-0048"; singleton:="true"
              org.eclipse.core.runtime [87]
                Unresolved requirement: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.8.0,4.0.0)"; visibility:="reexport"
                  -> Bundle-SymbolicName: org.eclipse.equinox.common; bundle-version="3.8.0.v20151023-1114"; singleton:="true"
                     org.eclipse.equinox.common [143]
                       Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

    at org.eclipse.osgi.container.Module.start(Module.java:429)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Update

最新的 Neon (M6) 和 9-ea-113 仍然没有运气,但记录的错误已更改

!SESSION 2016-04-28 16:27:53.344 -----------------------------------------------
eclipse.buildId=4.6.0.I20160317-0200
java.version=9-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 4 0 2016-04-28 16:28:10.145
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:386)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:490)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:504)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:203)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:627)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:605)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:520)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:670)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:609)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1516)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1489)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:151)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:375)
    ... 23 more

看起来与 a 中的相似错误报告。它在 M7 中标记为固定。


Edit:您可以下载支持 Java 9 的最新版本的 eclipse -https://www.eclipse.org/downloads/eclipse-packages/


我正在运行 Java(TM) SE 运行时环境(build 9-ea+158)和 eclipse 版本:Neon.2 Release (4.6.2) - Build id: 20161208-0600

以某种方式解决方案-Djdk.launcher.addmods= and -addmods使用价值观java.se.ee or java.annotations.common不工作。

以下是对我有用的解决方案:

--add-modules=java.se.ee

Source:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Neon:如何在jdk9上运行? 的相关文章

随机推荐

  • 从事件处理程序返回值到 JavaScript 的父函数

    我需要将事件处理程序返回的值放入首先启动事件的函数中 只是为了返回仅在事件处理程序中接收的值 我相信应该有一种简单的方法来实现这一点或从不同的角度解决问题 我实际上需要做的是 创建一个新的 img DOM 对象以将 dataURL 提供给其
  • 内容传输编码 7 位或 8 位

    发送电子邮件内容时 需要设置 内容传输编码 标头 我观察到收到的许多电子邮件的标题 有些电子邮件使用 7bit 有些则使用 8bit 这两者有什么区别 推荐哪个 电子邮件正文是否需要任何特殊编码才能设置这些标头 阅读起来可能有点密集 但 R
  • 是否可以发送 WM_COPY 消息来将文本复制到剪贴板以外的其他位置?

    这是方法定义 DllImport user32 dll public static extern int SendMessage IntPtr hWnd int msg IntPtr lparam IntPtr wparam 这是对 Sen
  • 如何将数组(Google 应用脚本)返回到 HTML 侧边栏?

    我想将我在 code gs 中创建的一些数组返回到 HTML 侧边栏并使用它来填充选择 到目前为止我有这个 假设我想使用 this part of the array for the select 作为 html 选择 code gs fu
  • 在 SwiftUI 列表中呈现 Realm 数据的正确方法是什么

    我正在尝试从中获取所有项目Realm并将它们显示在SwiftUI List但我不断收到错误 In a UIKit Realm应用程序 我只想创建一个Results变量来存储所有项目Realm然后 我会获取中的项目viewDidLoad方法并
  • 类型错误:不可排序的类型:str() < int()

    我使用的是 python 3 5 所有包都是以下版本 numpy 1 12 0b1 mkl cp35 cp35m win amd64 scikit learn 0 18 1 cp35 cp35m win amd64 scipy 0 18 1
  • 在div之上创建一个浮动div

    我正在尝试创建类似以下的内容 div 1 div2 on top of div1 div3 div2 div3 我想创建一个div2在两者之上div1 and div3 我真的不知道如何做到这一点 有人可以帮我吗 谢谢 您
  • SwiftUI @Binding 初始化

    一直在玩 SwiftUI 并理解了这个概念BindableObjects到目前为止等等 至少我希望如此 我遇到了一个愚蠢的问题 我似乎找不到答案 你如何初始化一个 Binding多变的 我有以下代码 struct LoggedInView
  • 将不同的格式应用于不同的列数据框

    我有以下 df table A B C D 0 0 000000 0 000000 0 002520 0 002520 1 0 209772 0 016262 0 003411 0 024343 2 0 006474 0 000152 0
  • c++ OpenCV 将 Mat 转换为一维数组

    我有这个Mat Mat testDataMat 386 2 CV 32FC1 testDataFloat 其中取自 float testDataFloat 386 2 但我不知道如何将它变成一维数组 有什么帮助吗 样本包括 从浮点二维数组转
  • android viewPager 实现 [关闭]

    很难说出这里问的是什么 这个问题模棱两可 含糊不清 不完整 过于宽泛或言辞激烈 无法以目前的形式合理回答 如需帮助澄清此问题以便重新打开 访问帮助中心 我的任务是向右滚动到另一个屏幕 然后按图标并显示弹出窗口 我想用ViewPager在两个
  • 在gui线程中触发异步事件

    TL DR 我正在寻找一种方法让一个线程在另一个线程中引发事件 EDIT 我说的是 立即 这个词 正如一些评论者指出的那样 这是不可能的 我的意思是 如果 gui 线程空闲的话 它应该相当快地发生 在低毫秒到纳秒的范围内 如果我做得正确 它
  • CSS3 过渡 + 不显示 + 防止过度滚动

    因此 如果您还不熟悉 CSS3 过渡不会产生动画display none因为它从 DOM 中完全删除了目标元素 这是我的问题 我有一个侧边栏 其中悬停时会出现更大的弹出 div 不幸的是 因为我只能过渡visibility hidden a
  • 在 Express (node.js) 中动态限制上传文件大小

    我正在开发一个简单的应用程序 允许用户上传他们的内容 我想限制 Express 接受的文件大小 我知道我可以使用 app use express limit 2mb 但是我要动态改变限制 某些用户会有更高的限制 最好的解决方案是首先检查co
  • 为什么 Django 迁移在每一行上使用相同的随机默认值?

    Note 我理解并且很清楚将函数作为参数传递和调用函数并将结果作为参数传递之间的区别 我相信我正确地传递了该函数 Specs 姜戈 1 11 PostgreSQL 10 4 设想 我的应用程序中有数十个模型 并且有许多现有记录 我需要向每个
  • 检查 Inno Setup 中是否安装了 .NET 5.0

    我有以下 iss 脚本来编译我正在开发的使用 NET 5 0 的游戏启动器 目前 它每次都会尝试从安装程序安装 NET 5 0 而不是先检查是否需要 我找到了大量资源来告诉您如何针对 NET Framework 执行此操作 但几乎没有找到针
  • CollectionView 在调试中工作,但在 .NET MAUI 中的发布中不起作用

    我有以下内容
  • Swiftui 获取图像的显示尺寸

    我试图获取显示图像的尺寸 以在我使用苹果的 Vision 框架识别的文本上绘制边界框 因此 我在按下此功能的按钮后运行 VNRecognizeTextRequest func readImage image NSImage completi
  • 如何自定义(或禁用)JQuery Mobile 中的自动“后退”按钮

    是否可以自定义 或简单地禁用 JQuery Mobile 中的自动 后退 按钮 我想你正在寻找这个 http jquerymobile com demos 1 0a3 docs toolbars docs headers html 要禁用它
  • Neon:如何在jdk9上运行?

    刚开始玩 jdk9 一开始就卡住了 下载并解压 eclipse java neon m4a win32 安装了 java 9 支持 由 dnd 来自市场 下载并安装jdk9u99 仅jdk 不是公共jre 此时 我可以使用 jre jdk