我是 JADE 新手,只是尝试启动“Hello World!我的名字是 smith”,我的代码如下:
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();
}
}
我添加以下配置:
-gui jade.Boot smith:test.myFirstAgent
我有以下错误:
AVERTISSEMENT: WARNING: ignoring command line argument smith:test.myFirstAgent occurring after agents specification
AVERTISSEMENT: Note that agent specifications must be separated by a semicolon character ";" without spaces
AVERTISSEMENT: Cannot create an agent with no name. Class was jade.Boot
不明白为什么,有什么想法吗?
最佳答案
尝试在没有jade.Boot的情况下执行相同的命令 -gui 史密斯:test.myFirstAgent
关于java - 无法启动代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40366845/