I made my first java/JavaFX application using eclipse and exported the Runnable Jar file. On my computer it runs just fine using the following command:
java --module-path ".\lib" --add-modules=javafx.controls -jar ".\myProgram.jar"
but when I tried to run in on another computer I get the following error:
Unrecognized option: --module-path Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
On my computer Java -version gives me:
java version "15" 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
On the user's computer I get:
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
What is the minimal version of Java I need to install one the users computers to make this work. Is there something else I need to do in eclipse to make this work on the end users computer. Should I use another version of Java to build my application ? I'm lost.