[英]Cannot start an agent
I'm new with JADE and only trying to launch that say "Hello World! My name is smith" my code is the following : 我是JADE的新手,只是尝试推出“Hello World!我的名字是史密斯”,我的代码如下:
package test;
import jade.core.Agent;
public class myFirstAgent extends Agent {
private static final long serialVersionUID = -1274500864032189209L;
protected void setup() {
System.out.println("Hello World! My name is "+getLocalName());
// Make this agent terminate
doDelete();
}
}
I add the following Configuration : 我添加以下配置:
-gui jade.Boot smith:test.myFirstAgent -gui jade.Boot smith:test.myFirstAgent
And I have the following errors : 我有以下错误:
AVERTISSEMENT: WARNING: ignoring command line argument smith:test.myFirstAgent occurring after agents specification AVERTISSEMENT:警告:忽略命令行参数smith:test.myFirstAgent在代理规范之后发生
AVERTISSEMENT: Note that agent specifications must be separated by a semicolon character ";" AVERTISSEMENT:请注意,代理规范必须用分号“;”分隔。 without spaces 没有空格
AVERTISSEMENT: Cannot create an agent with no name. AVERTISSEMENT:无法创建没有名称的代理。 Class was jade.Boot 班级是jade.Boot
Can't get why, any idea ? 不明白为什么,任何想法?
尝试在没有jade.Boot -gui smith:test.myFirstAgent的情况下执行相同的命令
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.