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