I have never used jlink. ________________________________ From: Huckleberry Finn <[email protected]> Sent: December 21, 2019 5:23 PM To: joe schmo <[email protected]> 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 <[email protected]<mailto:[email protected]>> 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<http://openjfx.io> ________________________________ From: Huckleberry Finn <[email protected]<mailto:[email protected]>> Sent: December 18, 2019 2:26 PM To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> 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
