首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Jade无法创建代理MyAgent

Jade无法创建代理MyAgent
EN

Stack Overflow用户
提问于 2016-08-18 12:45:33
回答 1查看 3.9K关注 0票数 3

我对JADE环境很陌生,我试图通过终端和Eclipse在MAC操作系统上运行代理。但它把我抛在了例外之下

日志

代码语言:javascript
运行
复制
$ 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设置在

代码语言:javascript
运行
复制
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home

I have JADE in $JAVA_HOME/lib and  /Library/Java/Extensions

在Eclipse上,我通过在一个单独的终端上启动主容器,为另一个项目提供了以下参数

代码语言:javascript
运行
复制
-container -agents Test1:simple0.HelloAgent

我花了几个小时研究,试图弄清楚到底是怎么回事,但没有什么进展。任何帮助都将不胜感激。

干杯

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-20 03:36:23

所以在花了几个小时之后,我发现了这里出了什么问题。在MAC (Yosmite) Eclipse上,我不得不将项目添加到类路径中。然后一切都开始运作了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39018622

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档