Eclipse Jade Agent II -- Ubuntu 10.04

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 stub
		super.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@ab50cd[Error: Not 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.

 

解决办法:

参数一

 

参数二:

参数二

 

说明:windows xp下,我没有设置-host 127.0.0.1 也可以运行 见: http://mmscau.iteye.com/blog/484211

 

运行

 

运行

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值