I made my first JavaFX application and I wanted to export it to .exe. I used IntelliJ to write code, used Maven Tools to create JAR and then Lanuch4J to convert it. From Launch logs I get
Executing: C:\Users\XXXX\Desktop\Test.exe
Error: JavaFX runtime components are missing, and are required to run this application
Launching the jar by java -jar jarfile.jar gives the same results.
I have added JavaFX to environment variables path as this is the only solution that I came up with. Maybe I did it wrong. I need help to resolve it. Also is there a way where exe won't need JavaFX to be installed on PC so I could share it with others that only have Java installed?