|
From: Gerard K. <g.k...@st...> - 2004-10-14 07:14:11
|
Hi Peter,
Thanks for your answer but unfortunately it doesn't answer my question.
I've seen the xml of the tutorial and what's in it. But I made the
tutorial myself and want to run it with my own files. Where the jar file
is on d:\java\experiment.jar and the Model, Order and Customer class are
in the jar file. I tried lots of things like for instance:
<model>
<model-class>d:/java/Model</model-class>
<class-path>
<jar-file>file:/d:/java/experiment.jar</jar-file>
</class-path>
</model>
What am I doing wrong?
Gerard
-----Oorspronkelijk bericht-----
Van: Peter H.M. Jacobs [mailto:p.h...@tb...]
Verzonden: donderdag 14 oktober 2004 8:36
Aan: g.k...@st...; Dso...@li...
Onderwerp: RE: [Dsol-java] Running a DSOL model
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-
class>
<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
|