From: Nick C. <nic...@gm...> - 2009-11-23 14:05:23
|
Hi, The typical Repast S launch classpath will contain the JDK and the Repast S runtime code (repast.simphony.runtime project). The model code is loaded via paths specified in the model.score file. This model code can be the model itself and any other 3rd party code including for example the dependent project. This thread might help a bit: http://old.nabble.com/Problem-using-an-external-library-ts22581608.html#a24588889 Nick On Nov 22, 2009, at 9:16 AM, Yoav Ram wrote: > Hi Nick, > I don't understand... > On the classpath of the launcher there's only the JDK, Repast S > Libraries and the dependency project. The dependent code is not in > the classpath of the launcher. Is this what you mean? Also in the > "source" tab of the launcher there's only the default entry. > Please explain further, I've got a wonderful model that I can't run > for 2 weeks already... ;( > Thanks! > Yoav > > > On Wed, Nov 18, 2009 at 16:13, Nick Collier <nic...@gm...> > wrote: > Mostly like the dependent code is on the root classpath. Check the > classpath that you use to launch the model. That should not contain > any model code. > > Nick > > > On Nov 18, 2009, at 7:35 AM, Yoav Ram wrote: > > Hi > I'm running two projects from the same workspace, one of them > depends on the other, both are Repast simulations. > One is working, while the other, the depended, is not. When I "Run > xxxx Model", the GUI comes up and the error log prints the following > (after the end of my message). > I don't get it, as the code compiles and the error message says that > a Repast interface definition can not be found, but it's in the same > jar as the GUI, so how can he miss it?? > I've made sure that "Repast Simphony Development Libraries" is in > the Build Path. Tried both Java 1.5 and 1.6. > I'm using Repast Simphony 1.2 in Eclipse on WinXP. > I would appreciate any help, > Thanks! > Yoav > > Error Log: > ---------------- > 2009/11/18 14:27:59,708: Fatal error starting Repast > java.lang.NoClassDefFoundError: repast/simphony/dataLoader/ > ContextBuilder > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java: > 124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: > 301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at > org.java.plugin.standard.StandardPluginClassLoader.loadClass(Unknown > Source) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: > 320) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java: > 124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at > org.java.plugin.standard.StandardPluginClassLoader.loadClass(Unknown > Source) > at > org.java.plugin.standard.StandardPluginClassLoader.loadClass(Unknown > Source) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: > 320) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at > repast.simphony.scenario.ScenarioLoader.getClass(ScenarioLoader.java: > 246) > at > repast > .simphony > .scenario.ScenarioLoader.createParameters(ScenarioLoader.java:285) > at > repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:149) > at repast.simphony.ui.RSApplication.open(RSApplication.java: > 247) > at > repast > .simphony.ui.RSAppConfigurator.postWindowOpen(RSAppConfigurator.java: > 40) > at > saf.core.ui.GUICreatorDelegate.runDisplay(GUICreatorDelegate.java:188) > at saf.core.ui.GUICreator.runDisplay(GUICreator.java:14) > at repast.simphony.ui.RSUIPlugin.run(RSUIPlugin.java:87) > at > saf.core.runtime.CorePlugin.runApplicationRunnable(CorePlugin.java:64) > at saf.core.runtime.CorePlugin.run(CorePlugin.java:33) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun > .reflect > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun > .reflect > .DelegatingMethodAccessorImpl > .invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at saf.core.runtime.Boot.run(Boot.java:125) > at saf.core.runtime.Boot.main(Boot.java:280) > at repast.simphony.runtime.RepastMain.main(RepastMain.java:43) > Caused by: java.lang.ClassNotFoundException: > repast.simphony.dataLoader.ContextBuilder > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: > 301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: > 320) > ... 45 more > ------------------------------------------------------------------------------------------------------------------ > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest > > |