Soy nuevo en JADE y tengo algunos problemas para cargar agentes.
Creé un nuevo proyecto IntelliJ y agregué "jade.jar" y "commons-codec-1.3.jar" (estoy usando JADE 4.1.1) en "Dependencias" y marqué las casillas de exportación (también probé sin ellas marcado). Luego agregué el "HelloWorldAgent.java" que viene en los ejemplos al src. Configuré las configuraciones de ejecución como:
Cuando ejecuto el uso de esta configuración, el tipo de JADE se inicia pero no encuentra el "HelloWorldAgent". La salida es:
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 [email protected]:1099/JADE ) not found [nested java.lang.ClassNotFoundException: HelloWorldAgent]
14-Feb-2012 21:43:08 jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container [email protected] is ready.
El problema clave es claramente:
SEVERE: Cannot create agent testAgent: Class HelloWorldAgent for agent ( agent-identifier :name [email protected]:1099/JADE ) not found [nested java.lang.ClassNotFoundException: HelloWorldAgent]
Intenté usar eclipse pero tengo el mismo problema, también intenté usar una versión anterior de JADE, pero nuevamente, no tuve suerte. Cualquier ayuda será muy apreciada.
Muchas gracias
Y
Parece que la ubicación en la que puse "jade.jar" y "commons-codec-1.3.jar" fue el problema (originalmente los puse en / Library / Java / Extensions (en OSX lion)). Intenté quitarlos, ponerlos en otro lugar y lo intenté de nuevo y ahora funciona. ¡No estoy del todo seguro de por qué importa!
Este artículo se recopila de Internet, indique la fuente cuando se vuelva a imprimir.
En caso de infracción, por favor [email protected] Eliminar
Déjame decir algunas palabras