Subject: Re: [jade-develop] troubles with compilation
From: David Grimshaw - Professor Emeritus (dgrimsha@scs.ryerson.ca)
Date: Fri Nov 01 2002 - 00:34:02 MET
Hi,
The tutorial assumes you have copied examples\PingAgent from its place as
a subdirectory of src to a direct subdirectory of the jade directory.
You then have say, c:\jade\examples\PingAgent\PingAgent.java and compile
it from the jade directory.
Dave
On Thu, 31 Oct 2002, edu alvarez wrote:
> Date: Thu, 31 Oct 2002 16:06:03 +0100
> From: edu alvarez <soriaedu@hotmail.com>
> To: jade-develop@sharon.cselt.it
> Subject: [jade-develop] troubles with compilation
>
>
> I am following the Tutorial 1: Getting Started with JADE and I can't compile
> the file \src\examples\pingAgent\pingAgent.java. The message which is
> printed out is
>
> /********************************************************************/
> src\examples\pingagent\pingagent.java:145: cannot resolve symbol
> symbol : class Logger
> location: class examples.PingAgent.PingAgent
> logFile = new Logger(getLocalName());
>
> /********************************************************************/
> ^
> In the file PingAgent.java Logger is declarated as follows:
>
> /********************************************************************/
> package examples.PingAgent;
>
> import java.util.Date;
> import java.io.FileWriter;
> import java.io.IOException;
> import java.io.PrintWriter;
> import java.io.OutputStreamWriter;
>
>
> import jade.core.*;
> import jade.core.behaviours.*;
> import jade.lang.acl.ACLMessage;
> import jade.domain.FIPAAgentManagement.ServiceDescription;
> import jade.domain.FIPAAgentManagement.DFAgentDescription;
> import jade.domain.DFService;
> import jade.domain.FIPAException;
>
>
> public class PingAgent extends Agent {
>
> Logger logFile;
>
>
> /********************************************************************/
>
> I don't know where is the problem.Someone can help me?
>
> _________________________________________________________________
> MSN. Más Útil Cada Día http://www.msn.es/intmap/
>
> _______________________________________________
> 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
>
--============================================================ David Grimshaw School of Computer Science Ryerson University 350 Victoria Street Toronto, Ontario, M5B 2K3, Canada http://www.ryerson.ca/~dgrimsha ============================================================
This archive was generated by hypermail 2a22 : Fri Nov 01 2002 - 13:16:38 MET