Jade 无法创建代理 MyAgent
Jade Cannot create agent MyAgent
我是 JADE 环境的新手,我正在尝试通过 MAC OS 上的终端和 Eclipse 运行 代理。但它让我低于两者的例外
日志
$ java jade.Boot -container -agents MyAgent:examples.hello.HelloWorldAgent
Aug 18, 2016 10:24:15 PM jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE 4.4.0 - revision 6778 of 21-12-2015 12:24:43
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
Aug 18, 2016 10:24:15 PM jade.imtp.leap.LEAPIMTPManager initialize
INFO: Listening for intra-platform commands on address:
- jicp://
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.resource.ResourceManagement initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
Aug 18, 2016 10:24:16 PM jade.core.AgentContainerImpl startBootstrapAgents
SEVERE: Cannot create agent MyAgent: Class examples.hello.HelloWorldAgent for agent ( agent-identifier :name MyAgent@:1099/JADE ) not found - Caused by: examples.hello.HelloWorldAgent
Aug 18, 2016 10:24:16 PM jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container Container-1@is ready.
--------------------------------------------
我已经在
中设置了 JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
I have JADE in $JAVA_HOME/lib and /Library/Java/Extensions
在 Eclipse 上,我通过在单独的终端上启动主容器为另一个项目提供了以下参数
-container -agents Test1:simple0.HelloAgent
我花了数小时研究并试图弄清楚发生了什么,但没有成功。任何帮助将不胜感激。
干杯
所以在花了几个小时之后,我弄清楚了这里出了什么问题。在 MAC OS (Yosmite) Eclipse 上,我必须将项目添加到类路径中。然后一切开始工作。
我是 JADE 环境的新手,我正在尝试通过 MAC OS 上的终端和 Eclipse 运行 代理。但它让我低于两者的例外
日志
$ java jade.Boot -container -agents MyAgent:examples.hello.HelloWorldAgent
Aug 18, 2016 10:24:15 PM jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE 4.4.0 - revision 6778 of 21-12-2015 12:24:43
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
Aug 18, 2016 10:24:15 PM jade.imtp.leap.LEAPIMTPManager initialize
INFO: Listening for intra-platform commands on address:
- jicp://
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.resource.ResourceManagement initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
Aug 18, 2016 10:24:16 PM jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
Aug 18, 2016 10:24:16 PM jade.core.AgentContainerImpl startBootstrapAgents
SEVERE: Cannot create agent MyAgent: Class examples.hello.HelloWorldAgent for agent ( agent-identifier :name MyAgent@:1099/JADE ) not found - Caused by: examples.hello.HelloWorldAgent
Aug 18, 2016 10:24:16 PM jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container Container-1@is ready.
--------------------------------------------
我已经在
中设置了 JAVA_HOME/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
I have JADE in $JAVA_HOME/lib and /Library/Java/Extensions
在 Eclipse 上,我通过在单独的终端上启动主容器为另一个项目提供了以下参数
-container -agents Test1:simple0.HelloAgent
我花了数小时研究并试图弄清楚发生了什么,但没有成功。任何帮助将不胜感激。
干杯
所以在花了几个小时之后,我弄清楚了这里出了什么问题。在 MAC OS (Yosmite) Eclipse 上,我必须将项目添加到类路径中。然后一切开始工作。