r/JavaFX • u/ReineganGG • Aug 15 '23
Help Can't export an executable .jar file
Hi guys, i'm creating my first Java App, and i'm using JavaFX, i managed to do all the things until i try to export the .jar of the project. I'm using VSCode, JDK 11, and JavaFX 17.
The IDE show the message: [warning] duplicate entry: module-info.class
And when i try to run it on console: Error: JavaFX runtime components are missing, and are required to run this application.

I suppose VScode only add 1 Module-info.class and ignore the others, but if im not wrong all of them are neccesary, so i don't know what to do now, I modified the launch.json file, and changed my main class.
Thank you
View all comments
Show parent comment
1
u/ReineganGG Aug 15 '23
Thank you, i'm sure the "Runtime components are missing" problem is by the module-info duplication, i'm gonna explore the VScode options so see if there a form to include all the .class files.