Description of the examples
Some examples are distributed with
the JADE software, that show how to use some of the JADE
features and some suggested programming idioms.
All the examples must be
compiled because only their source code has been distributed. The ant file 'build.xml'
in the JADE root directory includes the target 'examples' that allows to compile
the examples by using the 'ant' program (i.e. just type 'ant
In order to run the
examples, set the CLASSPATH environment variable to contain
the files jade.jar, jadeTools.jar,
Base64.jar, iiop.jar and the
directory where the .class files of the examples have been
generated, usually ('.'). All example agent classes
belong to subpackages of 'examples' package, refer to the various
example agents with a fully qualified package name; for example,
class ComplexBehaviourAgent in 'behaviours' subdirectory of
'examples' directory must be started via the following
java jade.Boot -platform
The following is the list of all
the example programs distributed in the 'src/examples' directory.
- Hallo World: Shows a minimal agent printing "Hallo World!" and then terminating.
- Behaviours: Includes examples showing the usage of
simple and composite behaviours.
- Messaging: Includes examples showing how to make JADE
- Yellow Pages: Includes examples showing how to use the Yellow
Pages service provided by the DF agent.
- Book Trading, Shows a very simple multi agent system for trading
- Protocols, Includes examples showing the usage of the
support provided by JADE for interaction protocols.
- Ontology, this example shows how to use
the support for application specific ontologies.
example shows the usage of the jade.wrapper package to start a JADE runtime
and control a number of agents from an
64, this example
shows how to encode serialized Java objects into the
content of an ACLMessage; it also shows how to force the platform to use
bit-efficient and/or XML ACLCodec.
- Mobile, this is an example of a mobile
Using JADE with other technologies.
- JSP, this is an example of
integration of JADE and JSP kindly provided by Daniel Le
Berre. Look at the tutorial in the documentation.
- Jess, is a sample agent that allows
the programmer to avoid writing any line of Java code and
implement everything in CLIPS by using JESS.
- JadeJessProtege, this package includes examples
for a closer integration of JADE with JESS, optionally
also with protege.
- ThanksAgent, this example shows an agent
that creates some other agents and has a simple
conversation with them
- Party, this is an
example of a simple multi-agent application where an host sets a party and
invite a number of guests
- MeetingScheduler, this is a simple demo of
a MeetingScheduler multi-agent system
- The Agentcities PingAgent, this directory contains a simple
is a trademark of TILAB (formerly CSELT).
JADE has been developed jointly by TILAB
and the Computer
Engineering Group of the University