开源改变世界!!

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254

推推 grbl 1年前 (2023-01-28) 104次浏览
关闭
marciot 打开了这个问题 2019 年 8 月 12 日 · 17条评论
关闭

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动#1254

marciot 打开了这个问题 2019 年 8 月 12 日 · 17条评论

注释

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254

我正在尝试在 Windows 上使用GPL 版本的 OpenJDK运行 UGS。我将 OpenJDK 文件安装到“C:\Program Files\OpenJDK\jdk-12.0.2”,然后将“C:\Program Files\OpenJDK\jdk-12.0.2\bin”添加到系统路径并创建了一个 JAVA_HOME 环境值为“C:\Program Files\OpenJDK\jdk-12.0.2”的变量

在命令提示符下,我可以运行“java”并得到:

C:\Users\test8>java --version
openjdk 12.0.2 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

但是,当我双击“ugsplatform64”时,出现“找不到 Java 1.7 或更高版本”。

难道我做错了什么?UGS Platform 是否需要非 GPL Java 安装?

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
所有者

如果您从命令行运行 UGS,它会起作用吗?也许您需要在安装 OpenJDK 后重新启动?

如果这些都不起作用,您可以按照#885中链接的说明直接配置 java 运行时的路径

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
作者
马尔西奥 评论了 2019 年 8 月 12 日  

@winder: 感谢你能这么快回复!重新启动没有区别。从命令行运行给我关于未找到 Java 的相同错误,控制台中显示以下内容:

C:\Users\test8\Downloads\ugsplatform-2.0.0-stable\ugsplatform\bin>

The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.

然后我修改ugsplatform.conf了以下行:

# default location of JDK/JRE, can be overridden by using --jdkhome switch 
jdkhome="C:\\Program Files\\OpenJDK\\jdk-12.0.2"

这在一定程度上改变了行为。我没有出现关于无法找到 Java 的错误,而是出现了一个Netbeans Platform 8.1启动画面,但随后没有其他任何事情发生。控制台打印如下:

C:\Users\test8\Downloads\ugsplatform-2.0.0-stable\ugsplatform\bin>

The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/C:/Users/test8/Downloads/ugsplatform-2.0.0-stable/ugsplatform/platform/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

所以,到目前为止,OpenJDK 还没有成功。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者

@winder我认为我们仍然需要合并#1243以使其在 Java 9 及更高版本上运行。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
作者

@winder,@breiler: 我注意到#1243已经合并,所以我今天尝试了夜间构建。虽然它不适用于未修改的“ugsplatform.com”,但在我修改“jdkhome”变量后它确实起作用了:

# default location of JDK/JRE, can be overridden by using --jdkhome switch 
jdkhome="c:\\Users\\USERNAME\\Downloads\\openjdk-12.0.2_windows-x64_bin\\jdk-12.0.2"

在我在这里问我的问题之前,设置这条路径的过程并不明显。对于想要使用 OpenJDK 的人来说,在下载页面上添加注释可能有意义吗?

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者

每晚构建实际上还没有启动和运行,所以我认为您仍在运行旧版本?我很惊讶你让它与后来的 JDK 一起工作。

立刻@winder让夜间构建和运行(或进行新构建),不需要修改或额外的参数修补。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
作者

这很奇怪。我确实注意到当我每晚单击时得到的 zip 文件被标记为“稳定”,但它比我单击稳定版本的链接时得到的 zip 文件更大。所以我不知道我运行的是什么版本,但是从夜间链接链接的版本似乎耸耸肩

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
作者

@breiler:在主窗口的标题栏上显示“2.0 版 [每晚] / 2019 年 4 月 23 日”。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
所有者

@marciot有机会请尝试一下新版本:http: //bit.ly/2L2v9k6

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
作者

@marciot有机会请尝试一下新版本:http: //bit.ly/2L2v9k6

@winder: 对于那个版本,它仍然说我没有正确的 Java,但是一旦我更改了 jdkhome,它就会启动。所以它的行为与我尝试过的其他夜间发布完全一样(但这个在标题栏中显示为 2019 年 8 月 20 日)

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者

让它在 Windows 上运行有点棘手,你需要像你提到的那样更改 jdkhome 配置。我会看看我们是否可以创建一个包含 JDK 的 Windows 包。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254 breiler 自己分配了这个 2019 年 11 月 15 日
无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者
布雷勒 评论了 2019 年 11 月 15 日  

仍然需要一些测试,但可以在以下位置获得构建:https ://ugs.jfrog.io/ugs/UGS/nightly/ugs-platform-app-2.0-SNAPSHOT-win.zip

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者

我已经在 Windows 10 上对此进行了测试。如果有人有时间尝试一下,我会很感兴趣。

下载、解压并运行 bin 目录中的 exe。应该不需要安装 Java 或更改配置文件。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254

我在 Windows 10 上使用 openJDK 13.0.1 时遇到了同样的问题

但多亏了@marciot我找到了 etc/ugsplatform.conf 并进行
jdkhome了相应的修改 – 现在它可以工作了。

无法启动 UGS 平台以在 Windows 上使用 OpenJDK12.0.2 启动 #1254
合作者

关闭,因为现在有一个带有捆绑 Java 的窗口下载​​。