小弟第一次接触JADE,但出现一个问题一直解决不了,我是利用的是eclipse写的java程序,jade是4.0版本,源程序如下: 运行时,会弹出Communication failure while joining agent platform: No ICP active结果信息。
源程序:
import jade.core.*;
public class HelloWorld extends Agent{
  public void setup(){
  System.out.println("Agent Started: Hello World!");
  System.out.println("-----About Me:-----");
  System.out.println("My local name is:"+getLocalName());
  System.out.println("My globally unique name is:"+getName() );
  System.out.println("-----About Here:-----");
  Location l = here();
  System.out.println("I am running in a location called:"+l.getName());
  System.out.println("Which is identified uniquely as:"+l.getID());
  System.out.println("And is contactable at:"+l.getAddress());
  System.out.println("Using the protocol:"+l.getProtocol());
  }
}运行结果:
2010-5-27 16:07:25 jade.core.Runtime beginContainer
信息: ----------------------------------
  This is JADE 4.0 - revision 6326 of 2010/04/20 14:52:06
  downloaded in Open Source, under LGPL restrictions,
  at http://jade.tilab.com/
----------------------------------------
Retrieving CommandDispatcher for platform null
2010-5-27 16:07:25 jade.imtp.leap.CommandDispatcher addICP
警告: Error adding ICP jade.imtp.leap.JICP.JICPPeer@1bd747e[Cannot bind server socket to localhost port 1099].
2010-5-27 16:07:25 jade.core.AgentContainerImpl joinPlatform
严重: Communication failure while joining agent platform: No ICP active
jade.core.IMTPException: No ICP active
at jade.imtp.leap.LEAPIMTPManager.initialize(LEAPIMTPManager.java:138)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:316)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:482)
at jade.core.Runtime.createMainContainer(Runtime.java:165)
at jade.Boot.main(Boot.java:89)
2010-5-27 16:07:25 jade.core.Runtime$1 run
信息: JADE is closing down now.不知道是哪里出错了呢,请高手指教一下,万分感激