Running Your First Simulation¶
This page covers the quickest reliable path to a first successful SimPaths run using singlerun.jar.
Before you run¶
Make sure you have already completed:
In practice, that means:
- the project builds successfully with Maven
singlerun.jarexists in the repository root- the required input files are present under
input/
Recommended first run: headless and explicit¶
For a first run, the clearest route is to separate setup from execution.
1. Build the project¶
2. Run setup only¶
3. Run the simulation only¶
What the main flags do¶
The most useful singlerun.jar options are:
| Option | Purpose |
|---|---|
-c <CC> |
country code such as UK or IT |
-s <year> |
simulation start year |
-Setup |
perform setup only, then exit |
-Run |
skip setup and run the simulation directly |
-g true\|false |
enable or disable the GUI |
--rewrite-policy-schedule |
rebuild EUROMODpolicySchedule.xlsx from detected donor policy files |
-Setup and -Run are mutually exclusive. If neither is provided, SimPathsStart does both.
If you want to use the GUI¶
After the initial setup has succeeded, you can launch the single-run interface with:
In GUI mode, SimPaths opens the start-up dialog and then launches the JAS-mine shell. This is useful for interactive exploration, but it is less explicit than the headless route for a first installation check.
For a fresh clone using the bundled training data, follow First GUI run with bundled training data. It shows the exact start-up options, country, and 2019 start year required to build the local database before starting the simulation.
What success looks like¶
A successful first run should leave you with:
- a rebuilt input database at
input/input.mv.db - no setup error about missing donor files or missing policy schedule
- a completed simulation run, either in the GUI or in headless mode
If the run fails before the simulation starts, the problem is usually in setup rather than in the model itself.
Common first-run problems¶
| Problem | What to check |
|---|---|
Policy Schedule file ... doesn't exist |
create input/EUROMODpolicySchedule.xlsx first, or rerun setup with --rewrite-policy-schedule |
| donor or initial-population files are missing | check the contents of input/InitialPopulations/ and input/EUROMODoutput/ |
| wrong Java version | SimPaths targets Java 25 |
| setup succeeds but the run uses unexpected inputs | rebuild the database after changing donor files or the policy schedule |
Where to go next¶
Once the first run works, the next useful pages are: