0

I have a JavaFX application, that uses SceneBuilder, and has 2 VM arguments, and when I export it in Eclipse as a runnable jar file, it says that:

"VM arguments will not be part of the runnable JAR. Arguments can be passed on the command line when launching the JAR"

I still exported it though, but it wouldn't run. And I cant figure out how to add the arguments to the jar, and I also wanna convert it to a .exe with Launch4j

Anyone know how to add the VM Arguments to the jar?

dukc
  • 11
  • 3
  • 1
    Does this answer your question? [Specifying JVM arguments when calling a jar file?](https://stackoverflow.com/questions/5891123/specifying-jvm-arguments-when-calling-a-jar-file) – hfontanez Jan 04 '22 at 19:02
  • And for Launch4J: https://stackoverflow.com/q/62508328/438992 – Dave Newton Jan 04 '22 at 19:02
  • 2
    Executable JAR + JavaFX = Just don't do this! – mipa Jan 04 '22 at 19:07
  • 1
    If you want to create an `exe` (not an executable `jar`), then [here is one way to do this](https://stackoverflow.com/questions/69811401/how-to-create-a-standalone-exe-in-java-that-runs-without-an-installer-and-a-jr) (includes some discussion of alternate packaging approaches). – jewelsea Jan 04 '22 at 20:14

0 Answers0