How to download and play
1: Download the StarFighter.jar
file below
2: Double click the jar file to run the game
Troubleshooting
If the game does not launch when you attempt to open the jar file, try executing it with the following command:
java -jar path/to/StarFighter.jar
If you get a java.lang.UnsupportedClassVersionError
, make sure your Java version is at least JDK 20. You can check your current version with the following command:
java --version
Check the first line. It should say something like this, but may have different numbers:
java 20.0.1 2023-04-18
If the first number is less than 20 (or you get a command not found error), download the latest version of the java JDK.
If you are on MacOS, there is a chance you may see a message similar to the one below:
To fix it, do one of the following:
A: Navigate to the file in Finder, right click the file, select open, then press open on the popup
B: Open System Settings, go to Privacy & Security, and scroll down until you see the following message:
"StarFighter.jar" was blocked from use because it is not from an identified developer.
Then press the "Open Anyway" button