Skip to content
Snippets Groups Projects
Commit 823abf9d authored by Jens Dede's avatar Jens Dede
Browse files

Fix exported simulation: add jsyntaxpane JAR, start simulation with maximum speed

parent 2ab63554
Branches
No related tags found
No related merge requests found
......@@ -187,7 +187,15 @@ public class ExecuteJAR {
logger.info("Starting simulation");
Cooja.setLookAndFeel();
Cooja.quickStartSimulationConfig(new File(executeDir, SIMCONFIG_FILENAME), false, null);
Simulation sim = Cooja.quickStartSimulationConfig(new File(executeDir, SIMCONFIG_FILENAME), false, null);
if (sim != null){
/* Set simulation speed to maximum and start simulation */
sim.setSpeedLimit(null);
sim.startSimulation();
} else {
logger.fatal("Cannot load simulation, aborting");
System.exit(1);
}
}
/**
......@@ -284,7 +292,8 @@ public class ExecuteJAR {
/* Unpacking COOJA core JARs */
String[] coreJARs = new String[] {
"tools/cooja/lib/jdom.jar", "tools/cooja/lib/log4j.jar", "tools/cooja/dist/cooja.jar"
"tools/cooja/lib/jdom.jar", "tools/cooja/lib/log4j.jar",
"tools/cooja/dist/cooja.jar", "tools/cooja/lib/jsyntaxpane.jar"
};
for (String jar: coreJARs) {
File jarFile = new File(Cooja.getExternalToolsSetting("PATH_CONTIKI"), jar);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment