2

I have a JavaFX 8 application with a preloader, which works nicely on Windows, Linux and macOS.

I'm currently using NetBeans to package my app into a native macOS bundle, which give me the required folder tree for the application and the embedded JRE, along with a default content for Info.plist and an automatically compiled native executable, which is used to launch my app with the embedded JRE.

The thing is I don't want to be tied to NetBeans to generate this bundle. And the only thing that prevents me to be independent from NetBeans is that automatically compiled native executable, for which I don't have the source code.

I tried to browse NetBeans source code to find how this native executable is generated to no avail. Does anybody have any idea about how it's generated?

OOEngineer
  • 447
  • 3
  • 12
  • All it is doing, ultimately, is invoking the `javapackager` command (which is part of the standard JDK), probably via an Ant task. You can just invoke that yourself from the command line (or make a build process in your favorite IDE; many already come with tools to do that). See the [deployment guide](http://docs.oracle.com/javase/8/docs/technotes/guides/deploy/). – James_D Jun 25 '17 at 16:09
  • Thanks for the useful tip! So ultimately, I have to look at what javapackager is doing. My goal is to package everything from my main computer on Windows. A friend is lending me his MacBook but I can't work permanently on a lent machine... – OOEngineer Jun 25 '17 at 17:05
  • You could use https://github.com/javafx-maven-plugin/javafx-maven-plugin or https://github.com/FibreFoX/javafx-gradle-plugin ;) and yes, I'm the maintainer/creator of these projects – FibreFoX Jun 26 '17 at 08:46

1 Answers1

0

If your intention is to cross-package your appliction from Windows to Mac, then I have to disappoint you because this is currently not prossible with the JavaFX packager.

mipa
  • 10,369
  • 2
  • 16
  • 35