AnyLogic 6 Discussion

Hi, I'm trying to run the anylogic model as a java process. Basically, I have java code that runs the same code that the batch process runs. At this point, I get the model to start and begin running normally. However, I haven't been able to get the model to close after it is finished running like the batch process does. I added the command of System.exit(0) for the model to run after the simulation is finished. This works for when I double-click the .bat file manually, but not when I run the process as just a java command. Any suggestions? thanks
I've managed to get it to run at this point. I was actually doing something incorrectly which was causing it to not work.