October 26, 2024
Chicago 12, Melborne City, USA
java

My .jar project doesn't open with double click, or in .exe


The problem is that I have my project in netbeans and I run it and it runs without problems, I click clean and generate project but when I run the .jar it doesn’t run.

I run this command in the console:
java -jar HuellaTorniquete.jar

And I get this error
Error: JavaFX runtime components are missing, and are required to run this application

and I run this command:
java –module-path "C:\Users\crist\Documents\jjavafx\javafx-sdk-23.0.1\lib" –add-modules javafx.controls,javafx.fxml,javafx.media -jar HuellaTorniquete.jar

and it opens the .jar,

Why doesn’t the .jar open from the file when I double click it? I have the fx libraries in my project and when I run it in netbeans it runs without problems

I created an .exe from the .jar and consequently it does not open.

Can anyone help?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video