Getting started with JADE


Contents

Installation

  1. Download JADE from http://www.emse.fr/~boissier/enseignement/maop/download (a local copy)
  2. Decompress the distribution file in some directory (say /tmp/jade)
  3. Set your classpath.

  4. You can test your installation executing the command
    java jade.Boot -gui
    

    Image screen-rma

You can find more information about the installation in the JADE Administrator Guide.

Eclipse configuration

  1. Create a new project in eclipse and add all jars of JADE in the library:

    Image screen-eclipse1

  2. Create a simple hello agent using the eclipse new class wizard and fill the fields as follows:

    Image screen-eclipse2

    and the code as

    Image screen-eclipse3

  3. This agent can not run as a program, we need to start a JADE container and add the agent inside the container. To start a container go to menu Run/Open Run Dialog and crate a new Java Application, called Main Container, where the main class is jade.Boot:

    Image screen-eclipse4

    Set the arguments for jade.Boot as follows (an agent called bob that is programmed in the class demo.HelloAg:

    Image screen-eclipse5

  4. Finally, execute the application.

    Image screen-eclipse6

Exercise

Create and run the ``book trading'' project presented in the last class. The source code of the agents is available here.

Note, in the code of the agents, how the directory facilitator services are used.

More information

You can find more information about JADE at:



boissier 2010-1-05