且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java 9 javapacker在创建bss时找不到jfxrt.jar。似乎在“createbss”中完全被打破了Linux下的模式。如何避免这个bug?

更新时间:2023-09-14 21:48:49

我已经检查了源代码 - 来自JDK 9.0.1的javapackager完全坏了!使用来自Java 8的可执行文件。我向Oracle填写了一个错误报告,突然间他们非常惊讶(没有人注意到核心工具的基本功能之一已经坏了?!)。

I've checked the sources - javapackager from JDK 9.0.1 is totally broken! Use executable file from Java 8. I filled out a bug report to Oracle and all of a sudden they were very surprised (nobody noticed that one of the basic function ot a core tool is broken yet?!).

临时解决方案:使用JDK 1.8中的javapackaged工具。您所需要的只是可执行文件本身,您可以放在任何地方。我把它直接放到我的项目树(在tools目录下)并从建筑脚本调用。警告!仅使用此替换的可执行文件createbss!使用常规的所有其他东西!

TEMPORARY SOLUTION: Use the javapackaged tool from JDK 1.8. All you need is the executable itself and you can put at any place. I put it right into my project tree (under "tools" directory) and call from a building script. WARNING! Use this replaced executable for "createbss" ONLY! Use the regular one for all other things!