I created a simple quiz program which includes audio MP3 files and image JPG files. Most importantly I used an external package in order to play audio files (JavaFX package) to the quiz program. I've used JGrasp IDE to write the program in.
I have tried to then create a jar file from the command line using the 'jar' command. Although before I used javaFX, the jar file could run perfectly on the system without the IDE. But now with the javaFX external package included, after created the jar file, and compiling the file, I get an exception saying cannot find the classes used in javaFX?
I also tried to add the jar files that my IDE has worked with to compile the classes within javaFX, but still gives that exception when I try to compile the jar file (using command ' java -jar quiz.jar ') ?
Can anyone tell how to add the javaFX external package to the jar file in order to run successfully on the system?
Thanks, much appreciated