如何在不使用 .exe 文件的情况下打包 JavaFX 可执行 JAR?

huangapple 未分类评论51阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年5月30日 07:55:27
  • 转载请务必保留本文链接:https://java.coder-hub.com/62096192.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定