Java 9 Eclipse 4.7 便携式导出错误 "resource not found"、"Could not find main method from given launch configuration."

Java 9 Eclipse 4.7 Portable export error "resource not found", "Could not find main method from given launch configuration."

前几天装了Oracle JDK 9. 试过用Eclipse,没用。我环顾四周,发现 this link。所以我用

之后显示的 link 更新了我的 Eclipse

To try out Java 9 support in Eclipse, you can follow any of these:

单击帮助 -> 安装新软件...,然后插入 link。这很顺利,我已经可以开始编码了,我也可以 运行 它。

但是我没能完成第二步,因为拖动安装按钮没有任何作用。

(第二步:)

Update your Eclipse 4.7 build for committers using Eclipse Marketplace entry (currently, needs some additional steps):

然后我意识到我没有Eclipse Marketplace Client,所以我安装了它然后就没问题了。

但问题是: 当我尝试将其导出为 运行nable jar 文件时,出现此错误:“JAR 创建失败。请参阅详细信息以获取更多信息。 未选择资源 Jar 导出完成但出现问题。有关其他信息,请参阅详细信息。 无法从给定的启动配置中找到主要方法。 “

我已经尝试创建新的启动配置、创建一个全新的空项目以及创建一个新的工作区。没有任何效果。

有没有人知道为什么这不起作用以及我可以做些什么来解决这个问题?

编辑

我的eclipse.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170921-1704
--launcher.defaultAction
openFile
--launcher.appendVmargs
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:/Program Files/Java/jdk-9/bin/javaw.exe   
-vmargs
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

正如在 Eclipse 中的 , the issue is filed as BUG#525711 中所证实的那样。

更新:- 已在 M20171115-1700 中验证为已修复主要是说,如果一个人正在使用 nightly 或 2017 年 11 月 15 日之后发布的版本,他们应该能够使用 Eclipse 创建 JAR。

=> 虽然这里要注意的另一点是,这会导致后续 BUG#527114 在创建 JAR 时处理多个模块失败。

我想人们应该最期待这些在将来 Eclipse Photon build 中更新。

我有 Build id: 20171218-0600 但问题仍然(或再次)在那里。

原来的错误 (525711) 已重新打开为 (526037):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=526037