1
我是JADE環境的新手,我試圖通過終端和Eclipse在MAC OS上運行代理。但它拋出我的異常下面從兩個Jade無法創建代理MyAgent
日誌
$ 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 [email protected]:1099/JADE) not found - Caused by: examples.hello.HelloWorldAgent
Aug 18, 2016 10:24:16 PM jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container [email protected] ready.
--------------------------------------------
我
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
I have JADE in $JAVA_HOME/lib and /Library/Java/Extensions
Eclipse的我已經在啓動主容器給另一個項目下列參數已經設置了JAVA_HOME單獨的終端
-container -agents Test1:simple0.HelloAgent
我花了小時研究和嘗試弄清楚發生了什麼,但沒有運氣。任何幫助將非常感激。
乾杯
您可能需要爲java添加classpath指令,以便jade可以找到您的代理類文件。這就是'examples.hello.HelloWorldAgent.class'需要在運行時在類路徑上 – jr593
試過java -cp「jade.jar:jadeExamples.jar」jade.Boot -container -agents MyAgent:examples.hello.HelloWorldAgent但didn 't work :( – Graduate
hhmm ....你能從JADE GUI運行代理嗎?還可以顯示當前目錄的名稱,從你運行命令的地方,以及包含代理的目錄名...謝謝 – jr593