JADE can be run under eclipse ‘Run’ as ‘Java Application’. Before you setup the execution environment for JADE, you should add JADE’s .jar files to your project:
- go to Project -> Properties
- move to Java Build Path
- in the “Libraries” tab, press “Add External JARs” button

- Select all the JADE’s jar files in “Orders and Export” tab
After you setup the classpath for JADE. You can create a “Run Configuration” for running JADE:
- go to Run -> Run Configurations
- move to Java Application
- in the “main” tab
- specify your project name, and
- main class is jade.Boot, and
- check the Include libraries when searching for a main class

In the Tab “argument”, program arguments is the arguments that would be used in command line, for example :
-gui jade.Boot [agent_nickname1:java_package1.agent_class1 agent_nickname2:java_package2.agent_class2 ...]
Where the agent_nickname is the nickname for your agent, java_package is the package of your agent, and agent_class is the java class name of your agent.

I’ve done the same in eclipse but always obtain the following error:
19/08/2007 08:36:12 PM jade.core.AgentContainerImpl startBootstrapAgents
GRAVE: Cannot create agent miagente: Class agente.Comunicador for agent ( agent-identifier :name miagente@linaresaliaga:1099/JADE ) not found [nested java.lang.ClassNotFoundException: agente.Comunicador]
19/08/2007 08:36:12 PM jade.core.AgentContainerImpl joinPlatform
If you know how to solve this problem, please make me know as soon as you can.
Comment by Richard — August 20, 2007 @ 9:46 am
This problem occurs when you don’t specified correctly class with agent. For example if agent class name is ContractNetResponderAgent and it’s in package examples.protocols then program arguments should look like: jade.Boot participant:examples.protocols.ContractNetResponderAgent
Comment by Milan — September 3, 2007 @ 4:01 pm
Hay
When I launch Jade in Eclipse, I obtain the following error:
28 nov. 2007 12:30:29 jade.core.AgentContainerImpl joinPlatform
GRAVE: Some problem occurred while joining agent platform.
jade.core.ProfileException: Can’t get a proxy to the Platform Manager [nested jade.core.IMTPException: The Service Manager was already bound in the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]]
at jade.core.ProfileImpl.createPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getServiceManager(Unknown Source)
at jade.core.AgentContainerImpl.init(Unknown Source)
at jade.core.AgentContainerImpl.joinPlatform(Unknown Source)
at jade.core.Runtime.createMainContainer(Unknown Source)
at jade.Boot.(Unknown Source)
at jade.Boot.main(Unknown Source)
Nested Exception:
jade.core.IMTPException: The Service Manager was already bound in the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(Unknown Source)
at jade.core.ProfileImpl.createPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getServiceManager(Unknown Source)
at jade.core.AgentContainerImpl.init(Unknown Source)
at jade.core.AgentContainerImpl.joinPlatform(Unknown Source)
at jade.core.Runtime.createMainContainer(Unknown Source)
at jade.Boot.(Unknown Source)
at jade.Boot.main(Unknown Source)
Nested Exception:
java.rmi.AlreadyBoundException: ServiceManager
at sun.rmi.registry.RegistryImpl.bind(Unknown Source)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Unknown Source)
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(Unknown Source)
at jade.core.ProfileImpl.createPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getPlatformManager(Unknown Source)
at jade.core.ProfileImpl.getServiceManager(Unknown Source)
at jade.core.AgentContainerImpl.init(Unknown Source)
at jade.core.AgentContainerImpl.joinPlatform(Unknown Source)
at jade.core.Runtime.createMainContainer(Unknown Source)
at jade.Boot.(Unknown Source)
at jade.Boot.main(Unknown Source)
28 nov. 2007 12:30:29 jade.core.Runtime$1 run
INFO: JADE is closing down now.
If you know how to solve this problem, please make me know as soon as you can.
Comment by Mohamed — November 28, 2007 @ 8:32 pm
i use this command -gui -local-port 1100 jade.Boot but my problem still..
csn u tell me plz how use command?
Comment by R.A.B — March 7, 2010 @ 11:20 pm
I was expecting the same issue, when using Eclipse, don’t know why.. but i exported runnables jars and it worked. Maybe some strange internal configuration for Eclipse.
Comment by gustavo pacianotto gouveia — July 22, 2010 @ 2:30 am
Computer name and user name in Windows must contain only Latin characters. Check it!
Comment by Slavik — September 27, 2010 @ 6:42 am
Try the following command when starting JADE: java jade.Boot -gui -local-port 1020
Comment by SLIM — October 23, 2010 @ 3:44 am
Hi,
We also had the same problem. An I found that the port it is using is already bound. So try with this command
-gui -local-port 1100 jade.Boot
you have to specify another port like 1100.I think this may solve ur problem.
Cheers!!!
Charith
Comment by Charith — December 12, 2007 @ 5:26 pm
[...] After this step we can run Jade under eclipse environment like the documentation wrote by jih. [...]
Pingback by Preparing Jade Before Running It « A Small Note from Long Journey — January 4, 2008 @ 3:55 pm
I have install JADE 3.5 in eclipse and I have the socket problem (GRAVE: Some problem occurred while joining agent platform.
jade.core.ProfileException: Error setting up multicast socket [nested java.net.SocketException: error setting options]) …..
at jade.core.MulticastMainDetectionListener.(MulticastMainDetectionListener.java:51)
at jade.core.MainDetectionManager.export(MainDetectionManager.java:413)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:312)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:459)
at jade.core.Runtime.createMainContainer(Runtime.java:148)
at jade.Boot.(Boot.java:130)
at jade.Boot.main(Boot.java:70)
Nested Exception:
java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.PlainDatagramSocketImpl.join(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at jade.core.MulticastMainDetectionListener.(MulticastMainDetectionListener.java:48)
at jade.core.MainDetectionManager.export(MainDetectionManager.java:413)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:312)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:459)
at jade.core.Runtime.createMainContainer(Runtime.java:148)
at jade.Boot.(Boot.java:130)
at jade.Boot.main(Boot.java:70)
19 mars 2008 09:41:45 jade.core.Runtime$1 run
INFO: JADE is closing down now.
Can you please tell me how to use
-detect-main from eclipse to avoid this message and thanks
Comment by inesse — March 20, 2008 @ 7:30 pm
hi everybody.
the problem of socket and multicast in(some problem occured while joining to the platform) is for port of computer and when u connet ur computer to any network(local network or internet or …)
and try again to join the platform,ur problem will be solve.
Comment by iman — April 19, 2008 @ 3:37 am
Hi everyone !!!
i have an inner class i.e
“public static class JadeAgent extends Agent” defined in package “Replication” under class “JServer”. The actual structure is:
package Replication;
public class JServer {
public JServer() {
// code
}
public static class JadeAgent extends Agent {
protected void setup( ) {
//code
}// end of setup
}// end of class JadeAgent
}// end of class JServer
Now when i try to run this code via command line(jade.Boot -gui WAgent:Replication.JServer.JadeAgent) it gives the following error:
Sep 13, 2008 4:34:03 PM jade.core.AgentContainerImpl startBootstrapAgents
SEVERE: Cannot create agent WAgent: Class Replication.JServer.JadeAgent for agent ( agent-identifier :name WAgent@biit:1099/JADE ) not found [nested java.lang.ClassNotFoundException: Replication.JServer.JadeAgent]
Sep 13, 2008 4:34:03 PM jade.core.AgentContainerImpl joinPlatform
I am new to java & JADE so kindly help me out I know that the problem is with the inner class. How should i specify static inner class in following command jade.Boot -gui WAgent:Replication.JServer.JadeAgent
Comment by Hassan — September 13, 2008 @ 10:39 pm
I tried
java jade.Boot -gui -local-port 1100
and my problem was solved.
Thanks Charith
Comment by Maricy — October 2, 2008 @ 1:34 pm
Hi,I’m workin with jade/eclipse
and when I tape java jade.Boot -gui -port 1100,I obtain the following error:
Grave: cannot create agent RMA :class jade.tools.rma.rma for agent(agent-identifier: name RMA@portable:1100)not found [nested java.lang.ClassNotFoundException:jade.tools.rma.rma}
Can someone help me,please!!!??
Comment by nanou — November 3, 2008 @ 12:12 am
I am getting error while installing jade in my system.While setting up the path the error is ‘jade.Boot not found’.Please help me to solve this problem.Reply me soon to my email
Comment by Rashmi — November 20, 2008 @ 12:24 pm
[...] http://wrjih.wordpress.com/2008/11/29/running-jade-under-eclipse/ [...]
Pingback by ZHU Yishui’s Page » Blog Archive » JADE with eclipse — December 9, 2008 @ 9:50 am
I have a simple agent class. I am try to setup db connection in setup method to mysql db. My code works fine when i test without extending it with agent class. But when i try to run it with Jade extended agents in simply fails “ClassNotFound Exception is thrown.” I have included the driver class.
Comment by Izhar — January 30, 2009 @ 11:55 pm
This Tutorial is Good One. Thanks for providing this.
Comment by ABC — February 20, 2009 @ 3:54 pm
I tried
java jade.Boot -gui -local-port 1100
and my problem was solved.
But i’m dont find the new agent in the MAIN-CONTAINER
What’s the ob
Thx
Comment by 3aguid — March 20, 2009 @ 11:51 pm
Dear Sir
my problem with is when i run the eclipse with the arguments -gui jade.boot
name:package.agent it come with cannot create agent name …
would you please help me and so thanks for your help
Comment by Bahaa Alnasry — May 3, 2009 @ 5:01 pm
Hi. I created the configuration, and my agent runs correctly. I make only one note: at command line, the -gui param can be placed after jade.Boot, but in Eclipse, this don’t work. I put the -gui after jade.Boot and don’t work. You showed the correct form using -gui jade.Boot in Eclipse. I only make this note because other users can change the order of theses parameter and the Jade Gui don’t will appear. Thank you.
Comment by Manoel Campos da Silva Fh — May 19, 2009 @ 7:12 am
Hello,
I have also this problem. As I tried running command
prompt_linux>java jade.Boot -gui
I got this error
http://fpaste.org/paste/13490
How can I handle this?
HJdM
Comment by Herli Menezes — June 1, 2009 @ 10:09 am
I see the error message and appear that java runtime don’t found the jade classes: Could not find the main class: jade.Boot.
You put the Jade’s jar files in the class path?
I decompress jade in the directory /opt/jade
I put theses lines in the file /etc/profile, to include jar’s in the class path:
export JADE_LIB=/opt/jade/lib
export CLASSPATH=$CLASSPATH:$JADE_LIB/http.jar:$JADE_LIB/iiop.jar:$JADE_LIB/jadeTools.jar:$JADE_LIB/jade.jar
Comment by Manoel Campos da Silva Fh — June 1, 2009 @ 9:22 pm
Mr Manoel C. da Silva,
I decompress package at my home directory, and defined environment variables according to the site.
I will try your hint.
Many thanks.
HJdM
Comment by Herli Menezes — June 2, 2009 @ 10:40 pm
Mr. Manoel
many thanks, i have shifted to newer problems, the old one is ok.
HJdM
Comment by Herli Menezes — June 22, 2009 @ 9:14 am
I run jade on eclipse correctly but I exported it to jade.jar file, It can’t execute, why? someone solved this problem?
Comment by sonlv — July 24, 2009 @ 1:09 am
Do your jade application run from eclipse but don’t run outside? Do you receive some error message? You configured the class path correctly, how mentioned above?
Comment by Manoel Campos da Silva Fh — July 25, 2009 @ 11:06 pm
When i run my first program, I see the error message that java runtime don’t found the jade classes: Could not find the main class: jade.Boot.
what do i do?
Comment by farnaz — September 30, 2009 @ 8:11 pm
See the 19th comment.
Comment by Manoel Campos — September 30, 2009 @ 10:33 pm
I am trying to lunch JADE with -services command in order to activate one user defined service. i wrote in the argument : -gui -port 1099 -host localhost -services bookTrading.logging.LoggingServices
but i received this error:
Nested Exception:
java.lang.ClassNotFoundException: bookTrading.logging.LoggingServices
Comment by Alrawajfeh — October 10, 2009 @ 2:25 am
my problem is solved by writting
-gui -services bookTrading.logging.LoggingServices
Comment by Alrawajfeh — October 10, 2009 @ 8:30 am
i need a code for any user defined service.
Comment by Alrawajfeh — October 10, 2009 @ 8:31 am
my problem with eclips.
i have created a service, when i lunch the Jade with this service its initialized fine, But after that when i try to Deploy agents, i found the Deploy tab is disabled.
Comment by Alrawajfeh — October 11, 2009 @ 3:08 am
[...] site to remember, especially having not touched Jade for a long time and have to re-do the configurations [...]
Pingback by Jade after a long coffee break… « terencetan.net — November 2, 2009 @ 3:49 pm
Hi! I have done everything just as said in instructions, and I can run JADE from eclipse – thank You for this. But, I have a problem with arguments… Could you pleace explain more about it: “-gui -jade.Boot :.” ??
If my project name is “Multi-agent-platform”, and my “HelloAgent.java” is located in “src” folder (just under “Multi-agent-platform”) how should I write arguments in this case?
As I understood it should be like:
“-gui jade.Boot andrey:src.HelloAgent”
but it does not work
In the GUI there are NO my agent, as well as there are no such messages as “Hello World My name is andrey” as it goes when I run it in terminal
I have also tried:
“-gui jade.Boot andrey:src.HelloAgent”
without “src” but nothing have changed
Thank You for your attention
I would really be glad to get at answer
Thank You
Comment by Andrey — November 23, 2009 @ 5:55 am
If you agent is in a package, you must inform AgentAliasDesired:PackageName.MainClass.
For instance, I have a agent main class with name BookSellerAgent in the package booktrading, so, I ran java jade.Boot -gui seller:booktrading.BookSellerAgent, where seller is the alias that I chose for my agent. I my project the binaries are created in a bin directory, inside my agent project directory. To run the command shown, I must enter in the bin directory.
Comment by Manoel Campos da Silva Fh — November 24, 2009 @ 12:39 am
Hi
I need to work with graphical interface of jade, i used -gui but it dosen’t work.
Please help me,
best regards
Comment by farnaz — November 29, 2009 @ 6:11 pm
Hi farnaz.
Are you running Jade from within Eclipse? If you do, are you sure you have put the -gui option in the right place? It should be in program argument field, not in the filed with the main class.
Comment by bjgr — December 3, 2009 @ 5:55 pm
How do i export to jar file ?
I select jade.Boot as “Main Class” in Jar Export, but it show this message error:
The selected main class is not selected for export or has no main method
¿ How to export it ?
If i select Jar Runnable and select the configuration that run in eclipse, show next error:
Could not find main method from given launch configuration.
thanks.
Comment by Juan — December 3, 2009 @ 10:52 pm
Dear
when i run HelloWorldAgent on eclipse i found the following error
SEVERE: Cannot create agent pet: Class HelloWorldAgent for agent ( agent-identifier :name pet@eichaw:1099/JADE ) not found [nested java.lang.ClassNotFoundException: HelloWorldAgent]
i set the arguments as -container pet:HelloWorldAgent
if so give me the way
Comment by eichaw — December 9, 2009 @ 12:36 pm
you have to set the arguments as:
-container pet:.HelloWorldAgent
Regards.
Comment by user — January 1, 2010 @ 8:22 am
You have to set the arguments as:
-container pet:YourPackageName.HelloWorldAgent
Regards.
Comment by user — January 1, 2010 @ 8:26 am
Dear sir,
i use eclipse to run Jade
i set my HelloWorldAgent in jade package and i set argument”-gui Peter:jade.HelloWorldAgent” but the following error appear
SEVERE: Cannot create agent seller: Class jade.HalloWorldAgent for agent ( agent-identifier :name seller@eichaw:1099/JADE ) not found [nested java.lang.ClassNotFoundException: jade.HalloWorldAgent]
what happen?
pls reply me as soon as
Comment by eichaw — December 10, 2009 @ 5:27 pm
how i set book title parameter for bookbuyer agent
i set argument
“buyer:classpath.class(booktitle)”
why the error no book specified occur?
pls reply me
Comment by eichaw — December 12, 2009 @ 1:50 pm
Dear Sir
i have problem for service description.
i can’t get service provider’s service from DFService.search(agent,dfservice);
Comment by ei chaw — February 11, 2010 @ 4:57 pm
Dear Sir,
there are three agent, one for search service and two for service provider.
When the agent search the service and found the service provider agent , the agent will respond .
I did this on the same machine. It is ok.
But i want to do it on two machines.
search agent on first pc and two service provider agents on second pc.
How can i do?
please advice me and help me.
thank you in advance
Comment by eichaw — March 19, 2010 @ 1:46 pm
I have to say that it sucks that almost 50% of people here, have the same problem of this error :
“class not found exception”
I ALSO have the same error and have been stuck since hours ! It sucks because JADE has not done anything to solve that problem . I have seen that problem so in so many places on the internet ! I wish someone would solve that problem here. SO many people have that exact same problem ! Does anyone have the solution or workaround on how to get over that “class not found exception” ? Please ?
Comment by Kumar Manish — April 19, 2010 @ 3:24 pm
I could solve the exception if I add “-local-port 1110″ or any other port number in my arguments. But I am facing “Cannot create Agent” issue. Any pointers on that?
Comment by Bird — April 23, 2010 @ 12:22 am
hi, are you using the -cp plus the path for your classes? because, I was having the same issue, and this solved my problem… another thing is to check if you are using the correct path for your class, and also check the package. I don’t think this is a problem of Jade, I think this issue is due to the user, most of the times. At least, every time i had this problem, it was my fault.
Comment by gustavo pacianotto gouveia — July 22, 2010 @ 2:28 am
hi
i installed Jade it’s worked in the command line (agent container is ready)
but i would to execute an exemple(Hello world agent) with the eclipse but i have pb( INFO: JADE is closing down now. )(i change port but th same pb)
please advice me and help me.
Comment by samira — February 21, 2011 @ 5:27 am
hi
i installed Jade it’s worked in the command line (agent container is ready)
but i would to execute an exemple(Hello world agent) with the eclipse but i have pb( INFO: JADE is closing down now. )(i change port but th same pb)
please advice me and help me.
Comment by samira — February 21, 2011 @ 5:30 am
Hi, I’m trying to use Jade 4.0. I’ve put the variables /lib/jade.jar e /lib/common-codecs in the classpath variable. When i do java jade.jar -gui it works. But when i try to to java jade.jar -gui test:packageName.ClassName, the gui opens but i get the following error:
“GRAVE: Cannot create agent test: Class test.HelloAgent for agent ( agent-identifier :name test@127.0.1.1:1099/JADE ) not found [nested java.lang.ClassNotFoundException: test.HelloAgent]“.
And my agent doesn’t appear in the Main-Container.
Can anyone please help me? My project depends on it.
Thank regards.
Comment by Luiz — March 15, 2011 @ 7:25 am
you dick
Comment by pablo — May 17, 2011 @ 1:13 am
hi,
i have the problem “”"Some problem occurred while joining agent platform.”"” I tried java jade.Boot -gui -local-port 1100 and my problem was solved.
But i’m dont find the new agent in the MAIN-CONTAINER. infact when i add inother agent from a plateform of JADE, it affiched in interface of eclips ( Hello World! My name is as) also i m dont find the second agent in the main-container.
What’s the ob
please help me.
Thank you
Comment by Imen — July 5, 2011 @ 9:49 pm
Hello,
I am trying to run an agent using JADE in Eclipse, that is the
BookBuyerAgent. I configure Jade using the instructions here.
As soon as I run it, I receive the following messages:
1.- WARNING: ignoring command line argument
buyer:test.BookBuyerAgent.java occurring after agents specification
2.- Note that agent specifications must be separated by a semicolon
character “;” without spaces
3.- Cannot create an agent with no name. Class was jade.Boot
The configuration of eclipse is:
Main class: jade.Boot
Arguments: -gui jade.Boot buyer:test.BookBuyerAgent.java
The GUI of jade starts, but not agent is detected or created. Could
somebody tells me if there a mistake in Eclipse configuration?.
Thanks in advanced
Luis Ramos
Comment by Luis Ramos — July 15, 2011 @ 10:27 pm
Hey there,
I got exactly the same error. Would be kind if someone could reply on this.
thx
Malte
Comment by Malte — August 22, 2011 @ 6:03 pm
Got a Solution for myself now. There is a very good Jade-Plugin for Eclipse, called EJADE:
http://selab.fbk.eu/dnguyen/ejade/index.html
works just fine!
Comment by Malte — August 29, 2011 @ 8:03 pm
I configured the arguments as follows
-gui -local-port 1100 jade.Boot;buyer1:jade.test.BookBuyerAgent
and worked for one agent, but is not stable when running more
Luis Ramos
Comment by Luis Ramos — November 3, 2011 @ 12:06 am