I remember encountering a bug like this before. I think my problem was that I hadn't set an environment variable properly on the machine I was using. One indication that this might be the problem is if the error occurs with other .jars. Are you able to run other jars on your machine?
Yes. Created a jar with a simple Hello World program and ran it from the same directory as the PuzzleBall jar
java -jar Test.jar
java -jar JavaPuzzleBall.jar
Error: Could not find or load main class javafxapplication01.JavaPuzzleBall
I have two Java Virtual Machines 8 and 9, the game works for me only with java 8, Whats your JVM? you can know that with the command java -version.
I did this
$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
$ java -jar JavaPuzzleBall.jar
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Could it be because I'm using openJDK instead of Oracle JVM ?
Strange... I'll see if I can get some advice on this.
I had same problem on Ubuntu with openJDK. Installed Oracle JDK and it works fine now.
If you are using gentoo javafx useflag should be enabled.
Here is my solution solution,
I am using Windows 10 OS.
Make sure you are using JDK 1.8 and download the game from the following link:
After downloading just double click on the JavaPuzzleBall.jar file or you can run through the cmd command, type java -jar JavaPuzzleBall.jar, (C:\Users\computername\Downloads>java -jar JavaPuzzleBall.jar)
I hope this helps.