我尝试使用 repast.simpony.runtime.RepastMain 以编程方式启动 Repast-simpony。所以当我吃午饭时,saf.core.runtime.Boot 类会给出这种类型的错误:
"ERROR [AWT-EventQueue-0] 14:43:38,880 saf.core.runtime.Boot - null
java.lang.NullPointerException
at saf.core.runtime.Boot.init(Boot.java:79)
at saf.core.runtime.Boot.main(Boot.java:246)
at repast.simphony.runtime.RepastMain.main(RepastMain.java:43)
at simmasto0.util.C_ChooseProtocol.actionPerformed(C_ChooseProtocol.java:123)
"
您想帮助找到解决此问题的方法吗?亲切!
public void actionPerformed(ActionEvent e) {
String xmlFileName = "parameters_scenario_" + e.getActionCommand() + ".txt";
splitRepastXmlConfigFiles(xmlFileName);
System.out.println(e.getActionCommand() + " Protocol choosed");
String[] args = new String[]{"C:\\Users\\sallmous\\`enter code here`Documents\\Workspace_Moussa\\SIMmasto_0\\SIMmasto_0.rs"};`enter code here`
repast.simphony.runtime.RepastMain.main(args);
System.exit(0);
}