英文:
How to package JavaFX Executable JAR without using a .exe?
问题
我正在尝试将一个可执行的JAR文件放到另一台电脑上,但在那台电脑上无法运行任何.exe文件。在使用JavaFX 11在Eclipse上完成我的项目后,我尝试将代码导出为可执行的JAR文件。当我在编写该程序的计算机上运行该JAR文件时,没有任何反应。据我所了解,所有必要的JavaFX文件没有被打包到可执行的JAR文件中,因此阻止了程序的运行。我的问题是,如何在可执行的JAR文件中包含所有必要的JavaFX文件,而不需要.exe安装程序?非常感谢任何帮助或建议。
英文:
I am trying to put a executable JAR onto different computer where I cannot run any .exe files. After completing my project on Eclipse with JavaFX 11, I tried exporting the code as an executable JAR. When I run the JAR on the computer that wrote the program nothing happens. As I understand it, all of the necessary JavaFX files are not being packaged into the executable JAR thus prevents the program from running. My question is how do I include all the necessary JavaFX files into the executable JAR without the need of a .exe installer? Any help or suggestions would be greatly appreciated.
专注分享java语言的经验与见解,让所有开发者获益!
评论