Batch Run from Terminal

View: New views
1 Messages — Rating Filter:   Alert me  

Batch Run from Terminal

by Enrico R. Crema :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You are not allowed to post to this mailing list, and your message has
been automatically rejected.  If you think that your messages are
being rejected in error, contact the mailing list owner at
repast-interest-owner@....


From: Enrico R.Crema <enryu_crema@...>
Date: 20 October 2009 12:24:17 GMT+01:00
Subject: Batch Run From Terminal


Dear List,
I'm having some troubles running my model from the terminal. The model works perfectly in GUI mode and also in Batch Mode starting from Eclipse (with no error message and the outputter working).Now I'm trying to run the simulation from the terminal (I have a MaxOSX10.6), but not really on what I have to write:
The Repast S doc says:

java -cp ... repast.batch.BatchMain [options] target

And I've found a couple of threads mentioning what thy've done (http://www.nabble.com/Command-line-batch-mode-td18104253.html#a18104253)

I understood that that the code should be something like:

java [VM arguments retrieved from Run Configurations in Eclipse] [path to the model folder] [path to the Repast Simphony Libraries] repast.simphony.batch.BatchMain -paramaters [path to xml file storing the parameters] [path to the folder with extension .rs within the model folder]

Am I right?

I ran (from my model folder):

java -Xss10M -Xmx400M -cp /Applications/RepastSimphony-1.2.0/workspace/complexforagers:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.runtime_1.2.0/bin/*:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.runtime_1.2.0/bin/:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.runtime_1.2.0/lib/*:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.batch_1.2.0/bin/:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.core_1.2.0/lib/*:/Applications/RepastSimphony-1.2.0/eclipse/plugins/repast.simphony.bin_and_src_1.2.0/repast.simphony.bin_and_src.jar:. /bin/ repast.simphony.batch.BatchMain -params batch/batch_params.xml /Applications/RepastSimphony-1.2.0/workspace/complexforagers/complexforagers.rs


Which gives me the following error message:

Exception in thread "main" java.lang.NoClassDefFoundError: /bin/
Caused by: java.lang.ClassNotFoundException: .bin.
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:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)


Putting the entire path to the model bin folder does not work neither....

Can anybody help me??

Enrico
---------------------------------------
Enrico R. Crema
PhD Candidate
Institute of Archaeology, UCL
AHRC Centre for the Evolution of Cultural Diversity, UCL
+44 7899093191








------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest