openjfx / openjfx-docs

Getting started guide for JavaFX 11
BSD 3-Clause "New" or "Revised" License
95 stars 25 forks source link

Error:Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK #90

Closed AVDAIN closed 5 years ago

AVDAIN commented 5 years ago

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

jperedadnr commented 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/

jefersontramonti commented 5 years ago

quando pede a Packager no intellij o que devo colocar?

Candra-2019-2020 commented 4 years ago

@jperedadnr Will JavaFX be added again? I cannot create JavaFX jar!!!

Candra-2019-2020 commented 4 years ago

I want to create JavaFX jars that allow other users to open .jar files with two clicks!

patoessy commented 4 years ago

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 .

atultiwariatul commented 3 years ago

For me (Ubuntu+Intellij Idea+OpenJDK 14) what Worked is:

  1. I created a Main.java file and called my Launcher.java file (JavaFX Application Main)

  2. Go to Artifacts (Intellij Idea's Projects Settings ) and delete the older Artifacts configuration.

  3. In the Artifacts section of your Projects Settings click to add a new Artifact

  4. Select Jar->from modules with dependencies Screenshot from 2020-08-01 18-11-03

  5. Select Main.java file (Which is calling your Launcher.java file)

  6. Select Extract the target jar.

  7. 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.

AgainPsychoX commented 2 years ago

Error: JavaFX runtime components are missing, and are required to run this application

lzkovacs commented 1 year ago

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

hoangnguyen02 commented 1 month ago

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

Hello, how can Exporting a javaFx project with libraries in eclipse? I have tried everything