Skip to content

Fat Multi Platform Jar Example not working in all Cases #66

Description

@alex0ptr

The OpenJFX Docs link to this sample project to configure maven to build a fat jar. Uncommenting the graphics dependencies will definitely create a multi-platform jar in the package phase, but the same pom cannot be used to do a mvn javafx:run, because then it fails with:

Graphics Device initialization failed for :  es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

This can be easily circumvented by including the dependencies only when wanting to build the fat jar.
I'll provide a PR with improvements.

Also it would be nice to fix https://openjfx.io/openjfx-docs/ >> Runtime Images >> Non Modular project/application >> Cross-platform jar.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions