Eclipse batch launch

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

Eclipse batch launch

by Brett Walker-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Before I venture into command line launching, perhaps it's best to have a working batch implementation through Eclipse.
I'm trying to get the Boids model running in batch mode (though I am not particular to this model, any model would do).
I have made a params.xml for the parameter file and all it currently contains is:

<?xml version="1.0"?>

<sweep runs="4">

</sweep>
 
When I try to run the model, I obtain the following error:

java.lang.RuntimeException: Couldn't find classes using supplied class loader: boids.BoidsAgent on path: C:\RepastS\workspace\Boids\bin

at repast.simphony.scenario.ScenarioLoader.getAgentClasses(ScenarioLoader.java:251)
 
The run Main class is set to:
 repast.simphony.batch.BatchMain
 
The arguments are:
-params ${file_prompt:the Batch Run Parameters File Name:params.xml}
"${workspace_loc}/Boids/boids.rs"

 
How can I implement a simple batch run? Is there a better model to try this on? Can anyone give me exactly how they have done this? Thanks, -Brett

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Re: Eclipse batch launch

by Tatara, Eric R. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
You need to supply your model classes to the runtime classpath.  Put the /bin folder of your code in the Classpath entries in the Eclipse launch.
 
eric
 

Eric Tatara, Ph.D.
Assistant Software Engineer
Center for Complex Adaptive Agent Systems Simulation
Decision and Information Sciences Division
Argonne National Laboratory

 


From: repast-interest-bounces@... [mailto:repast-interest-bounces@...] On Behalf Of Brett Walker
Sent: Wednesday, June 25, 2008 2:29 PM
To: repast
Subject: [Repast-interest] Eclipse batch launch

Before I venture into command line launching, perhaps it's best to have a working batch implementation through Eclipse.
I'm trying to get the Boids model running in batch mode (though I am not particular to this model, any model would do).
I have made a params.xml for the parameter file and all it currently contains is:

<?xml version="1.0"?>

<sweep runs="4">

</sweep>
 
When I try to run the model, I obtain the following error:

java.lang.RuntimeException: Couldn't find classes using supplied class loader: boids.BoidsAgent on path: C:\RepastS\workspace\Boids\bin

at repast.simphony.scenario.ScenarioLoader.getAgentClasses(ScenarioLoader.java:251)
 
The run Main class is set to:
 repast.simphony.batch.BatchMain
 
The arguments are:
-params ${file_prompt:the Batch Run Parameters File Name:params.xml}
"${workspace_loc}/Boids/boids.rs"

 
How can I implement a simple batch run? Is there a better model to try this on? Can anyone give me exactly how they have done this? Thanks, -Brett

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest
LightInTheBox - Buy quality products at wholesale price