In previous posting i wrote about ejip. I use eclipse 3.2 to use jade platform but i didn’t use ejip in my programming
I can create my first agent using jade. I have install eclipse 3.2 and jdk 1.4. and prepare jade before running it. This step by step using jade in eclipse:
-
Open eclipse 3.2
-
Create new project, i create project with yuhana_agent as name
-
Create new package, i give it name : indoorNav
-
Import all jade library:
-
right click on project name, choose property
-
choose libraries tab and press button “Add External JARS”, and select all jade libraries and click OK
-
choose Order and Export Tab, make sure all libraries are checked.
-
click OK
-
-
Create new class give HelloWorld.class for a name and write the code like this code :
package indoorNav;
import jade.core.Agent;
public class HelloWorld extends Agent{
public void setup(){
System.out.println(“Hello Yuhana, my name is : “ +getAID().getName());
}
}
-
Open Run Dialog by right click on project, choose Run As and choose Open Run Dialog. Give name MyFirstAgent for name of Run Configuration. In Main Tab, choose project name, write jade.Boot as main class and don’t forget to check checkbox include system libraries when searching for main class. See figure 1.

Figure 1. Main Class Setting
-
For next step choose (x)=Argument Tab, write -gui <main_class_name> <nickname>:<package_name>.<class_name> in program argument Tab. Example: i give yuhana as nickname, indoorNav as package and HelloWorld as class, so write -gui jade.Boot yuhana:indoorNav.HelloWorld on program argument as shown in figure 2.
Figure 2. Argument Setting
-
Run the program, see the result in figure 3 and RMA agent dialog appear as shown in figure 4. If program succes our new agent appear in this dialog. There are 3 default agent (RMA, ams and da agent). See agent yuhana appear in that figure.
Figure 3. Result of the program in console
Figure 4. Agent Dialog
How to do programming in Jade, please visit this
another related resources : http://agents.cs.bath.ac.uk/cm30174/jade/ and http://mia.ece.uic.edu/~papers/MediaBot/CLOntoSupport.pdf



January 12, 2008 at 1:04 am
whehehe,
this kind of post (agent and jade, red) make my old memory blow up again…
i really remember about her when studied this lesson
>yuhana:
January 12, 2008 at 4:12 pm
Hi! I’m a computer science student and I’m completing my bachelor’s degree. I’m trying to do a little research on the semantic web so I’m really glad to find a place like this. I’m not sure what your research exactly is but we’re using the same technologies (Jena, Jade). I’m glad you’ve made it clear to me the possible role of Protege in my project. Mine is about a meeting scheduler…
I’ll be checking your blog and I hope you can help me with some things. Good luck.
>yuhana:
nice to know you
welcome rdgoite, i hope it will usefull
January 12, 2008 at 4:38 pm
About the post, do you think Mars EJIP for Eclipse is a lot of help?
>yuhana:
i didn’t explore EJIP more because i found this way and it can work, so i still didn’t try how EJIP can help me. If i found it i will write down it in this blog
February 6, 2008 at 10:56 pm
Hi,
Thank you for your tutorial, it helped me a lot to launch Jade. But I can’t launch my own agent, I get the following message:
GRAVE: Cannot create agent tick: Class Essai2.Compteur for agent ( agent-identifier :name tick@dprs1-iot:1099/JADE ) not found [nested java.lang.ClassNotFoundException: Essai2/Compteur]
Then, the RMA is correctly launched, but of course without my agent.
Jean-Philippe
February 20, 2008 at 8:51 pm
The Mars-team website seems to be down right now…
March 8, 2008 at 10:59 am
Don’t worry, I don’t find the Mars plugin useful anyway….
March 18, 2008 at 4:28 pm
u are the man yuhana u are the man!
March 26, 2008 at 2:06 am
thanks so much for your step by step guides
July 1, 2008 at 4:58 am
to resolve your problem you can try to write juste -gui nameagent:classagent.
July 24, 2008 at 11:27 am
Thank u very much! it is very useful for me.
August 13, 2008 at 8:14 pm
Hi, Thanks alot.. it really works…cud u give more samples, so tat it ll be much of use…
Again, thanx alot…
October 15, 2008 at 10:10 pm
thanks a lot,i think this is only the most easily understandable and quickly installation resource of jade in eclipse.keep posting.
November 24, 2008 at 6:47 pm
Hi,How i can run 2 classes together?I want to make one agent to send message and another one to receive this message.