Javafx Self-contained Application Packaging For Mac

You can package your JavaFX application by building the corresponding artifact (a Java archive). For JavaFX applications, IntelliJ IDEA provides a dedicated artifact type: JavaFx Application.

Build JavaFX artifacts

Packaging a JavaFX application in a .jar is possible only with Java 8.

Copy and paste track points in basecamp for mac. Fixed an issue with routes created in BaseCamp not displaying lane assist and junction views on Nuvi devices. Updated the Czech translation for “road”. Updated route avoidance settings to be more like PNDs.

May 10, 2014  Fortunately, JavaFX provides a new deployment option called Native Packaging (also called Self-Contained Application Package). A native package is a bundle containing both your application code and the (platform-specific) Java Runtime. When I run the B4JPackager both your original and my modified, they do not produce a bundle. It just opens up a window with my app and a folder for applications. On your original it seems to close and tries to open up again. But can't and the first time it opened it ask me if I wanted to install xcode. Do you know if I need anything else to.

Create a new artifact configuration

IntelliJ IDEA creates the artifact for packaging the application together with the project. However, you can create a new artifact configuration with your custom settings.

  1. From the main menu, select File Project StructureCtrl+Shift+Alt+S and click Artifacts.

  2. Click , point to JavaFx Application, and select From module '..'.

    IntelliJ IDEA creates the artifact configuration and shows its settings in the right-hand part of the Project Structure dialog.

  3. Name the new configuration.

  4. Switch to the Java FX tab and in the Application class field, specify the main() method.

  5. Apply the changes and close the dialog.

This is a basic configuration that is sufficient to package an application. You can specify additional options on the Java FX tab. For the detailed description of each option, refer to Java FX tab.

Build the artifact

  1. From the main menu, select Build Build Artifacts.

  2. In the popup that opens, select the necessary artifact and select Build.

By default, the artifact is generated to <project_folder>outartifacts<artifact_name>.

If you want to make sure that your artifact is build correctly, create a new run configuration and run it as described in the section Run the packaged application.

Troubleshoot

  • Error:Java FX Packager: Can't build artifact – fx:deploy is not available in this JDK

    This is a known issue: IDEA-200721. Currently, you can package a JavaFX application in a .jar only with Java 8.