From: Nick C. <vze...@ve...> - 2001-12-20 14:21:01
|
How are you running your model? As long as repast.jar is in the classpath this shouldn't happen. So from a DOS terminal command line, java -cp c:\repast\lib\repast.jar ... Should be enough to find SimModelImpl. To answer your other question, java should be searching for SimModelImpl. The virtual machine will load the classes referenced by your model when they are needed (with some exceptions). Given that your model extends SimModelImpl (as it should) the jvm tries to load this class when it creates your model. Nick On Thu, 2001-12-20 at 09:00, Daniel Calhoun wrote: > Hello: > > On calling the interpreter on my introductory self-teaching work, I > get one error: > > Exception in thread "main" java.lang.NoClassDefFound Error: > uchicago/src/sim/engine/SimModelImpl > at ... [several lines of java. loci] > > I copy here the beginning and concluding lines of FamilyModel.java, > most of which is obviously copied from Jiggle. Is there some reason, > obvious or other, why SimModelImpl is not being found in engine.*? > Should it even be searching at this point for SimModelImpl? > > Thanks. > > Daniel Calhoun > bus...@so... > > > > // file FamilyModel.java > > // package family; > > import java.util.Vector; > > import java.util.List; > > import java.awt.Color; > > import java.util.ArrayList; > > import java.util.Hashtable; > > import uchicago.src.sim.engine.*; > > import uchicago.src.sim.gui.*; > > import uchicago.src.sim.space.*; > > import uchicago.src.sim.network.*; > > import uchicago.src.sim.util.SimUtilities; > > import uchicago.src.sim.util.Random; > > > > public class FamilyModel extends SimModelImpl { > > // model variables > > .... > > > > public static void main(String[] args) { > > uchicago.src.sim.engine.SimInit init = new > uchicago.src.sim.engine.SimInit(); > > FamilyModel model = new FamilyModel(); > > init.loadModel(model, null, false); > > } > > } > > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |