5

I've had some confusion in trying to create a .exe file to run my JavaFX application.

In Eclipse I use the VM Argument:

--module-path "\path\to\javafx-sdk-14.0.1\lib" --add-modules javafx.controls,javafx.fxml

But I'm not sure how to add it to Launch4j to be able to run it. Could someone show me how to add it?

Ali
  • 2,702
  • 3
  • 32
  • 54
  • You don't know the struggle I went through to make this work. This was the last piece; believe it or not. – hfontanez Apr 01 '22 at 21:32

1 Answers1

5

In launch4j, Look under the "JRE" tab. There is a textarea to add JVM options. There is a ScreenShot

  • 1
    Stupid me, I put them under "Command line arguments". That caused the it to actually work when testing from Launch4j, but not when the .exe was executed from Windows. This fixed the issue. – hfontanez Apr 01 '22 at 19:54