Running a Java FX Application from terminal.
I entered the following command:
java -cp "/usr/lib/jvm/java-10-oracle/lib/jrt-fs.jar:." application.Main
-cp = setting classpath variable to the location for my Java Fx .jar which is "/usr/lib/jvm/java-10-oracle/lib/jrt-fs.jar:."
in linux end the location string with :. instead of ;. which is seen in most examples
application is the package name
Main is the class I want to run.
And it works.
I read this thread https://stackoverflow.com/questions/9436219/compile-code-using-javafx-2-0-using-command-line
I entered the following command:
java -cp "/usr/lib/jvm/java-10-oracle/lib/jrt-fs.jar:." application.Main
-cp = setting classpath variable to the location for my Java Fx .jar which is "/usr/lib/jvm/java-10-oracle/lib/jrt-fs.jar:."
in linux end the location string with :. instead of ;. which is seen in most examples
application is the package name
Main is the class I want to run.
And it works.
I read this thread https://stackoverflow.com/questions/9436219/compile-code-using-javafx-2-0-using-command-line
0 comments:
Post a Comment