How to set the classpath for running a system?
There are three ways to set the classpath of a project: • Create a lib directory in the project and include the jar files there. The ant script created by Jason to run the project (bin/build.xml) includes lib/*.jar in the classpath. This approach is used in examples/gold-miners. • In case you do not want to copy files into the project, the classpath entry in the .mas2j file can be used: MAS masid { agents: ……. classpath: “../../jdom.jar”; “../../otherproject/classes”; “/apache/**/*.jar; // all jar files below /apache } Several items can be added as strings separated by “;”. This approach is used in examples/sniffer. • If a more customised startup is required for your system, create a file named bin/c-build.xml with the template below: