Still working thru this myself but this worked for me in a recent CoolBeans packaging of NetBeans using Maven underneath.
https://gist.github.com/dgreen/e1ae4636f311d38758dafdd7b0decf0f Maybe it is helpful. Dave On Sun, Dec 22, 2019 at 4:16 AM joe schmo <geekyguy...@hotmail.com> wrote: > I have never used jlink. > ------------------------------ > *From:* Huckleberry Finn <huckle.f...@gmail.com> > *Sent:* December 21, 2019 5:23 PM > *To:* joe schmo <geekyguy...@hotmail.com> > *Subject:* Re: [JavaFX] project jar file > > Thank you vey much. > I am using jdk 13.0.1 ( the latest) and I am new to Java, migrating from > c++. And yes the project is modular with main java class, controler file > and an fxml file. I could not figure out what kind of project management > Netbeans or IntelliJ are using. It does not seem to be neither gradle nor > maven. > I tried the project with Intellij too with the same result. > On the internet there are lots of useless comments. I went through javafx > documentation and followed their directions both for Netbeans and InjtelliJ > no effect getting the same error. > > I would very much appreciate it if you could elaborate on how to use > Jlinks. I have heard that Oracle had removed Jlink from java 13. > > > On Thursday, December 19, 2019, joe schmo <geekyguy...@hotmail.com> wrote: > > MIght be some helpful information here: > > https://openjfx.io/openjfx-docs/ > Getting Started with JavaFX 13 <https://openjfx.io/openjfx-docs/> > Getting started with JavaFX 13 for Java desktop application development > openjfx.io > > > ------------------------------ > *From:* Huckleberry Finn <huckle.f...@gmail.com> > *Sent:* December 18, 2019 2:26 PM > *To:* users@netbeans.apache.org <users@netbeans.apache.org> > *Subject:* [JavaFX] project jar file > > > 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 > > -- Sent from a mobile device. Please excuse any typos.