samples icon indicating copy to clipboard operation
samples copied to clipboard

Fat Multi Platform Jar Example not working in all Cases

Open alex0ptr opened this issue 2 years ago • 0 comments

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.

alex0ptr avatar Feb 11 '22 10:02 alex0ptr