From: Peter H.M. J. <p.h...@tb...> - 2004-10-14 06:36:26
|
Hi Gerard, In the experiment.xml (or whatever you named your model) you should put <model> <model-class>nl.tudelft.simulation.dsol.tutorial.section25.Model</model-clas s> <class-path> <jar-file>file:/c:/dsol-tutorial.jar</jar-file> </class-path> </model> Where the model class refers to your class and the jar-file refers to the jar file. The model class must be in the jar file (it does not need to be in de same directory independently) Does this solve your problem? Peter _____ From: dso...@li... [mailto:dso...@li...] On Behalf Of Gerard Koekkoek Sent: Thursday, October 14, 2004 1:15 AM To: Dso...@li... Subject: [Dsol-java] Running a DSOL model Hi, I tried to make dsol tutorial 2.5 myself. I made the Customer class, the Order class and the Model class. Then I made a jar file of these three java files. So far no problems encountered. But then I made a xml file and DSOL kept giving IOexceptions when I tried to open it. When I looked at the log file DSOL creates I saw (I think) that it is the <model-class> description. I tried to run it from my own PC the Model.java which I have to open is in D:\java\Model.java. And the jar file is also in that directory. In <model-class> I think I have to give the location of Model.java but I fail at doing that. So my question is: What do I have to type between <model-class> </model-class> in order for dsol to find my Model.java. Greetings, Gerard Koekkoek |