0
我無法運行代理BookBuyerAgent。錯誤:SEVERE:無法創建代理
路徑項目是d:\集刊\ magisterka \ sem10 \玉\ JADE-所有-4.1.1(1)\ JADE-所有-4.1 \玉\ SRC \例子\ bookTrading \ SRC。 起初我做javac BookBuyerAgent.java這個還行。其次,我做的java jade.Boot AGENT1:實例\ bookTrading的\ src \ BookBuyerAgent,我得到錯誤:
D:\studia\magisterka\sem10\jade\JADE-all-4.1.1(1)\JADE-all-4.1\jade\src\examples
\bookTrading\src>java jade.Boot tu:examples\bookTrading\src\BookSellerGui
sie 27, 2012 8:13:27 PM jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE snapshot - revision $WCREV$ of $WCDATE$
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
sie 27, 2012 8:13:28 PM jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
sie 27, 2012 8:13:28 PM jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
sie 27, 2012 8:13:28 PM jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
sie 27, 2012 8:13:28 PM jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
sie 27, 2012 8:13:28 PM jade.core.messaging.MessagingService clearCachedSlice
INFO: Clearing cache
sie 27, 2012 8:13:28 PM jade.mtp.http.HTTPServer <init>
INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParse
rImpl$JAXPSAXParser
sie 27, 2012 8:13:28 PM jade.core.messaging.MessagingService boot
INFO: MTP addresses:
http://10.1.242.245:7778/acc
sie 27, 2012 8:13:28 PM jade.core.AgentContainerImpl startBootstrapAgents
SEVERE: Cannot create agent tu: Class examples\bookTrading\src\BookSellerGui for
agent (agent-identifier :name [email protected]:1099/JADE) not found [nested java.la
ng.ClassNotFoundException: examples\bookTrading\src\BookSellerGui]
sie 27, 2012 8:13:28 PM jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container [email protected] is ready.
--------------------------------------------
是的,bookTrading \ src是包含.java文件的文件夾。所以到CLASSPATH我應該添加路徑bookTrading \ bin,然後嘗試編譯.java文件? – johny25