ДЖЕЙД не может найти агента

Я новичок в ДЖЕЙД и у меня небольшие проблемы с загрузкой агентов.

Я создал новый проект IntelliJ и добавил «jade.jar» и «commons-codec-1.3.jar» (я использую JADE 4.1.1) в «Зависимости» и установил флажки для экспорта (я также пробовал без них ставить галочку). Затем я добавил "HelloWorldAgent.java" из примеров в файл src. Я установил конфигурации запуска как:

  • Основной класс: jade.Boot
  • аргументы программы: -gui testAgent: HelloWorldAgent
  • Использовать путь класса модуля: jadeCW (имя моего проекта)

Когда я запускаю, используя эту конфигурацию JADE запускает, но не находит "HelloWorldAgent". Результат:

14-Feb-2012 21:43:08 jade.core.Runtime beginContainer
INFO: ----------------------------------
    This is JADE 4.1.1 - revision 6532 of 2011/11/18 16:21:34
    downloaded in Open Source, under LGPL restrictions,
    at http://jade.tilab.com/
----------------------------------------
Retrieving CommandDispatcher for platform null
14-Feb-2012 21:43:08 jade.imtp.leap.LEAPIMTPManager initialize
INFO: Listening for intra-platform commands on address:
- jicp://192.168.1.66:1099

14-Feb-2012 21:43:08 jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
14-Feb-2012 21:43:08 jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
14-Feb-2012 21:43:08 jade.core.BaseService init
INFO: Service jade.core.resource.ResourceManagement initialized
14-Feb-2012 21:43:08 jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
14-Feb-2012 21:43:08 jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
14-Feb-2012 21:43:08 jade.mtp.http.HTTPServer <init>
INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
14-Feb-2012 21:43:08 jade.core.messaging.MessagingService boot
INFO: MTP addresses: http://unknown-00-19-c5-7e-cb-4b.home:7778/acc
14-Feb-2012 21:43:08 jade.core.AgentContainerImpl startBootstrapAgents
SEVERE: Cannot create agent testAgent: Class HelloWorldAgent for agent ( agent-identifier :name testAgent@192.168.1.66:1099/JADE ) not found [nested java.lang.ClassNotFoundException: HelloWorldAgent]
14-Feb-2012 21:43:08 jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container Main-Container@192.168.1.66 is ready.

Ключевая проблема, очевидно, заключается в следующем:

SEVERE: Cannot create agent testAgent: Class HelloWorldAgent for agent ( agent-identifier :name testAgent@192.168.1.66:1099/JADE ) not found [nested java.lang.ClassNotFoundException: HelloWorldAgent]

Я пробовал использовать eclipse, но у меня та же проблема, я также пробовал использовать более раннюю версию JADE, но опять же, не повезло. Любая помощь приветствуется.

Большое спасибо

Дэн

6
задан Mike Causer 6 December 2013 в 12:15
поделиться