I made a program with Java 17 and JavaFX 17, and I want to be able to run it outside my IDE. I’m using NetBeans 18, so I followed the instructions of the top answer to this question: How to include jars in lib into project jar file in Netbeans?. I also had to put all the JavaFX jars into a lib folder in the dist folder of my project. Every jar is in there, but I can’t run the jar created by package-for-store. I checked inside the jar, and everything seems to be in there. I asked someone else for help, and they found out there’s an error: Error: JavaFX runtime components are missing, and are required to run
but they don’t know how to fix it. How do I fix this? What file is the JavaFX runtime component? Could the instructions I followed be outdated? And just to iterate the implied, it worked fine in NetBeans.
Here’s a link to the jar if that would help: https://drive.google.com/file/d/1K-zUsJheMyQQ78Qw9XcgAC-hBvFSQ-bV/view?usp=drive_link