在IntelliJ Idea" jade.Boot"作为主要班级不起作用

时间:2017-10-16 18:16:11

标签: intellij-idea

我想在" intellij Idea"中创建一个扩展Agent的类。 。如果我选择" jade.Boot"对于主要课程"编辑配置" ,它不起作用并且出错。

public class Agent1 extends Agent
{
    protected void setup()
    {
         System.out.println("Hello World. ");
         System.out.println("My name is "+ getLocalName());
    }
}

(编辑配置)

主要课程:jade.Boot

程序参数:-gui -local-port 1100 MyAgent:Agent1

////申请并运行

我还创建了一个环回测试网络

它显示此错误:

SEVERE: Some problem occurred while joining agent platform.
jade.core.ServiceException: Error while booting mandatory service 
jade.core.messaging.Messaging - Caused by:  jade/util/BasicProperties      
atjade.core.AgentContainerImpl.bootAllServices(AgentContainerImpl.java:478)
at jade.core.AgentContainerImpl.startNode(AgentContainerImpl.java:410)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:502)
at jade.core.Runtime.createMainContainer(Runtime.java:159)
at jade.Boot.main(Boot.java:89)
Nested Exception:
java.lang.NoClassDefFoundError: jade/util/BasicProperties
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
atjade.core.messaging.MessagingService$CommandTargetSink.installMTP(Messagin
gService.java:1264)
atjade.core.messaging.MessagingService$CommandTargetSink.handleInstallMTP(Me
ssagingService.java:1176)
atjade.core.messaging.MessagingService$CommandTargetSink.consume(MessagingSe
rvice.java:1055)
at jade.core.CommandProcessor$SinksFilter.accept(CommandProcessor.java:253)
at jade.core.Filter.filter(Filter.java:89)
at jade.core.Filter.filter(Filter.java:90)
at jade.core.Filter.filter(Filter.java:90)
at jade.core.CommandProcessor.processIncoming(CommandProcessor.java:229)
at jade.core.BaseNode.serveVerticalCommand(BaseNode.java:163)
at jade.core.BaseNode.serveHorizontalCommand(BaseNode.java:111)
at jade.imtp.leap.NodeLEAP.accept(NodeLEAP.java:60)
at jade.core.messaging.MessagingProxy.installMTP(MessagingProxy.java:151)
at jade.core.messaging.MessagingService.boot(MessagingService.java:337)
at jade.core.AgentContainerImpl.bootAllServices(AgentContainerImpl.java:470)
at jade.core.AgentContainerImpl.startNode(AgentContainerImpl.java:410)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:502)
at jade.core.Runtime.createMainContainer(Runtime.java:159)
at jade.Boot.main(Boot.java:89)
Caused by: java.lang.ClassNotFoundException: jade.util.BasicProperties
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 20 more
Oct 16, 2017 11:19:25 PM jade.core.messaging.MessageManager shutdown
INFO: MessageManager shutting down ...
Oct 16, 2017 11:19:25 PM jade.core.Runtime$1 run
INFO: JADE is closing down now.

Process finished with exit code 0

它是因为jdk版本?或其他原因

0 个答案:

没有答案