On 12/18/19 12:26 PM, Huckleberry Finn wrote:
To create a deplyable version of my project I make a clean & Build
project on it. Netbeans will create a jar file in the dist subfolder
of the project along with the fx libraries in the lib subfolder of dist.
When I run java -jar myproject.jar, I get
Error: JavaFX runtime components are missing, and are required to run
this application
How should I include the fx libraries inside the jar file
You don't. You have to bundle them with your app and then execute a
length command line to run it(or use jLink). Netbeans generates a
command line that is supposed to work for you, but the command it
generates only works on pre-9 versions before modules were finalized.
I made a Java script(pun intended) to automate this[1]. Modify as
needed. Requires java 11 and can be used by doing:
java AppLauncher.java
[1] https://gist.github.com/BlueGoliath/1c47414cebf2601358c97c2f475e1afe
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists