Hello World

Author: Giovanni Caire (TILab)

Date: 6/01/2001

This example shows a minimal agent printing “Hello World!” and then terminating.

Assuming all jade classes are in the classpath, you can launch this example with the following command:

java jade.Boot -gui Peter:examples.hello.HelloWorldAgent 

The above command line starts the JADE runtime and launches an agent called “Peter” of type HelloWorldAgent. The -gui option (not strictly related to this example) starts the JADE management GUI by means of which you can shutdown the JADE runtime.


This agent just prints “Hello World! My name is <AgentName> and then terminates.
Jade classes used: