Subject: AW: [jade-develop] Cannot run the PingAgent example
From: Aijaz, Amer (amer.aijaz@volkswagen.de)
Date: Mon Feb 24 2003 - 16:07:44 MET
Hi,
some newcomers have this problem. It is usually because when you unzipped
the examples package, the example directory unpacks under jade/src
directory. If then you try to start from within jade directory any of the
examples, they wont work because you should give the agent class address as
src.examples.PingAgent.PingAgent. As this class name would be clashing with
the package name within these PingAgent.java (which is examples.PingAgent),
it means either changing the package names!?!?!?! OR
simply copy the examples directory (along with its sub directories out of
source and directly under jade.
Second mistake for "Java Newbies" is they havent yet compiled PingAgent.java
and want to run it. Ofcourse it wont run then.
-----Ursprüngliche Nachricht-----
Von: Emerson F de A. Lima / Pos. COPIN [mailto:emerson@dsc.ufcg.edu.br]
Gesendet: Montag, 24. Februar 2003 13:23
An: Lin
Cc: jade-develop@sharon.cselt.it
Betreff: Re: [jade-develop] Cannot run the PingAgent example
Hi!
See if the classpath is set for the directory of the .class files.
On Sun, 23 Feb 2003, Lin wrote:
> Hi,
>
> I am very new to JADE
>
> There is a example Agent PingAgent under the directory
jade/examples/PingAgent(comes with the JADE software), I tried to run the
PingAgent in JADE, by using the command line:
>
> >runjade -gui ping0:examples.PingAgent.PingAgent
>
> but I was always given the messenge saying:
>
> the class examples.PingAgent.PingAgent was not found.
>
> I mean I have complied the PingAgent.java file, and it should work.
>
> Could anyone please tell me what shall I do? Thanks
>
> Lin
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
> http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
>
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
This archive was generated by hypermail 2a22 : Mon Feb 24 2003 - 16:39:43 MET