The default Java virtual machine does not provide enough memory to run large-scale projects.
On the command line, you need to add
java ... -mx1000m ...
This basically means that Java should use 1000MB (or about 1GB) of RAM to run. Depending on your scenario, you might run MATSim with less or may need more memory.
To add this argument when running MATSim from withIn Eclipse, do the following steps:
Run > Run Configurations...
Java Application - MyControler(or whatever your application is named).
VM arguments, type "
MATSim requires at least Java 1.6.
To run large simulations, you'll need a high-end machine with enough RAM and disk space. The provided examples are smaller ones and should run on all machines where Java 1.6 is running.
More details can be found at the System Requirements page for MATSim.
If you run a simulation with the standard MATSim Controler, a log-file should be created inside the output directory of your simulation.
If you call "java -cp .../matsim.jar ...", it is the directory where you execute this command.
In Eclipse, it is normally the root of the project. So if you have a project called MATSim, and a directory "inputs" inside this, you need to say "./inputs/...".
Java may try to access some X11 features when creating image buffers for graphs. If your server doesn't have X11 installed, this leads to Exceptions like
Exception in thread "main" java.lang.NoClassDefFoundError:
Could not initialize class sun.awt.X11GraphicsEnvironment
Try starting MATSim with the Java option
-Djava.awt.headless=true set, i.e.:
java -Djava.awt.headless=true -cp MATSim.jar org.matsim.run.Controler config.xml
Yes, this is possible. MATSim includes a copy of the required DTD and XSD files, where it will look for in case you are not on-line.
If you experience problem working off-line, try the following steps:
dtd" and copy the missing DTD/XSD files into this directory.
Most pages feature, near the bottom, a button "printer-friendly version", which does not only print the page itself, but also all pages "underneath" it in the hierarchy.