Eclipse Jade Agent II -
package test;import jade.core.Agent;public class Hello extends Agent {/** **/private static final long serialVersionUID = 1L;protected void setup() {System.out.println("Hello,My name is:"+getLocalName());}public void doDelete() {// TODO Auto-generated method stubsuper.doDelete();}} IDE:Eclipse 导入jade.jar问题:
Not possible to launch JADE on a remote host (127.0.1.1)
No ICP active 异常
2011-1-26 11:47:31 jade.core.Runtime beginContainer
信息: ----------------------------------
This is JADE snapshot - revision 6357 of 2010/07/06 16:27:34
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
Retrieving CommandDispatcher for platform null
2011-1-26 11:47:31 jade.imtp.leap.CommandDispatcher addICP
警告: Error adding ICP jade.imtp.leap.JICP.JICPPeer@ab50cdNot possible to launch JADE on a remote host (127.0.1.1). Check the -host and -local-host options.].
2011-1-26 11:47:31 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)
2011-1-26 11:47:31 jade.core.Runtime$1 run
信息: JADE is closing down now.
解决办法:
http://dl.iteye.com/upload/attachment/404757/4896c1b2-3b31-38ff-9f66-96bb53389749.jpg
参数二:
http://dl.iteye.com/upload/attachment/404759/87343f48-b1c8-37c1-af26-d360f1d804e0.jpg
说明:windows xp下,我没有设置-host 127.0.0.1 也可以运行 见: http://mmscau.iteye.com/blog/484211
运行
http://dl.iteye.com/upload/attachment/404764/d3df97a2-8961-39a6-ba57-af55adeb610f.jpg
页:
[1]