windows - Mac 上的 JavaFX native 打包 EXE

标签 windows macos javafx exe javafx-8

我在 Mac 上使用 Eclipse 来开发我的 JavaFX 应用程序。我已经使用 ant build 和 e(fx)clipse 插件将它很好地打包为 dmg。

但是我现在需要将这个应用程序变成一个 exe。到目前为止,我找到的每个教程和帮助都表明您需要 Inno Setup,但该程序仅适用于 Windows,而我使用的是 Mac。

我该怎么办?

感谢任何帮助!

最佳答案

这是不可能的,正如 oracle 官方网站上所记录的那样:

https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html

Self-contained application packages have the following drawbacks:

  • Package per target platform: Self-contained application packages are platform-specific and can only be produced for the same system on which you build. To deliver self-contained application packages on Windows, Linux, and OS X, you must build your project on all three platforms.

创建 native bundle /启动器与调用本地安装工具集的内部工具相关联,因此运行任何“EXE”文件都无法运行。一种选择是在某个虚拟机中安装 Windows 系统。

关于“在 64 位系统上创建 32 位系统”的一些注意事项,反之亦然:这很棘手而且不太可能,至少在 Windows 系统上是这样。我在调试时遇到了这个 some issue of the javafx-maven-plugin (免责声明:我是那个 maven-plugin 的维护者)

关于windows - Mac 上的 JavaFX native 打包 EXE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30993175/

相关文章:

windows - Windows上的递归移动命令

windows - 从 node.js 启动一个外部应用程序

macos - Mac OS X 检查是否安装了闪存

xcode - XPC 服务 NSCocoaError 域

在 JavaFX 中打印、导入和导出 TableView 内的数据

标准 jre 中的 JavaFx

ruby-on-rails - 我怎样才能加快 ruby​​ on rails 在 windows 上的测试?

c# - 确定系统架构

swift - 如何使用CGPDFDocument的documentAttributes

java - 收到错误 "Expression expected"?