This site requires JavaScript, please enable it in your browser!
Greenfoot back

Running Exported Standalone Scenarios

Greenfoot has the option to export a scenario to a standalone executable JAR. In Greenfoot versions 3.5.4 and earlier, this standalone JAR used Java 8, which meant it would not work with more recent Java versions, but it also meant that you could just double-click to run it.

In Greenfoot version 3.6.0 and newer, this standalone JAR uses Java 11+, so it will run with recent Java versions, but it requires a different way to run it. When you export from Greenfoot 3.6.0 it will give you the command that will run the scenario on your own machine. You can paste this into a command-line/terminal to run it, or save it into a batch file or shell script.

If you want to run the scenario, on another machine, you will need to adjust the command-line to point to their local Java and JavaFX installation. You may find it easier to get them to install Greenfoot (which comes with Java and JavaFX) and play the scenario within Greenfoot, or to export it to this website and let them play online.