Closed AVDAIN closed 5 years ago
The fx:deploy
option shipped with IntelliJ does not longer work with Java 11+, since there is no JavaFX packager
since Java 8 nor javapackager
since Java 10.
There is an issue already filed on this at the IntelliJ issue tracker.
Options to create an installer are mentioned here https://openjfx.io/openjfx-docs/#modular. Also you can try the new jpackage
tool which is still ea: http://jdk.java.net/jpackage/
quando pede a Packager no intellij o que devo colocar?
@jperedadnr Will JavaFX be added again? I cannot create JavaFX jar!!!
I want to create JavaFX jars that allow other users to open .jar files with two clicks!
There is javafx packager in java 8. But was removed in java 11. You can use one in jdk 14. But its in incubation. Head over to java.net and see the documentation
On Sat, Jun 27, 2020, 23:43 Candra-2019-2020 notifications@github.com wrote:
I want to create JavaFX jars that allow other users to open .jar files with two clicks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openjfx/openjfx-docs/issues/90#issuecomment-650623221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3RIRV5JCF2IWRPUS2NIVLRYZKWLANCNFSM4G4GHA6A .
For me (Ubuntu+Intellij Idea+OpenJDK 14) what Worked is:
I created a Main.java file and called my Launcher.java file (JavaFX Application Main)
Go to Artifacts (Intellij Idea's Projects Settings ) and delete the older Artifacts configuration.
In the Artifacts section of your Projects Settings click to add a new Artifact
Select Jar->from modules with dependencies
Select Main.java file (Which is calling your Launcher.java file)
Select Extract the target jar.
Choose META-INF directory to generate the Meta inf information
The Hack is that Intellij won't be treating this project as JavaFX application but as a Normal java project so it will generate the fat artifact successfully.
Error: JavaFX runtime components are missing, and are required to run this application
Error: JavaFX runtime components are missing, and are required to run this application
Don't forget to add modules: java --module-path /lib/javasdk/javafx-sdk-17.0.0.1/lib --add-modules javafx.controls,javafx.fxml -jar MyApp.jar
in this way worked, thank you @atultiwariatul
Error: JavaFX runtime components are missing, and are required to run this application
Don't forget to add modules: java --module-path /lib/javasdk/javafx-sdk-17.0.0.1/lib --add-modules javafx.controls,javafx.fxml -jar MyApp.jarin this way worked, thank you @atultiwariatul
Hello, how can Exporting a javaFx project with libraries in eclipse? I have tried everything
Since the option
fx:deploy
is no longer integrated in newer versions of Java JDK 11+, an error always occurs. I have also contacted other software engineers and they said that they are also looking for a solution to this problem.Error: Java FX Packager: Can not build artifact - fx: deploy is not available in this JDK
Solution: jpackage - tool for packaging self-contained Java applications.