gpt4 book ai didi

java - 错误: SEVERE:Cannot create agent

转载 作者:行者123 更新时间:2023-12-01 05:10:03 26 4
gpt4 key购买 nike

我无法运行代理 BookBuyerAgent。

项目路径为D:\studia\magisterka\sem10\jade\JADE-all-4.1.1(1)\JADE-all-4.1\jade\src\examples\bookTrading\src。首先,我执行 javac BookBuyerAgent.java ,这没问题。其次,我执行 java jade.Boot agent1:examples\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 tu@mariusz: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 Main-Container@mariusz is ready.
--------------------------------------------

最佳答案

bookTrading\src 文件夹可能是源文件夹(包含 .java 文件)。您应该将类​​路径相应地设置为 bookTrading\bin 文件夹,并将类名指定给 Jade 命令行。

关于java - 错误: SEVERE:Cannot create agent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12147294/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com