Java – Jade cannot find proxy
I'm a novice in jade and have some trouble loading the agent
I created a new IntelliJ project, added "jade. Jar" and "commons-codec-1.3. Jar" (I use jade 4.1.1) in "dependencies" and checked the export box (I also tried not to check them) Then I add "helloworldagent. Java" in the example to Src I set the run configuration to:
>Main category: jade Boot > program parameters: - GUI testagent: helloworldagent > classpath using module: jadecw (my project name)
When I run with this configuration, jade's people do start, but it can't find "helloworldagent" The output is:
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.
The key issues are clearly:
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]
I have tried to use eclipse, but I have the same problem. I have also tried to use an earlier version of jade, but I have no luck again Any help would be appreciated
Thank you.
Bear
Solution
At startup, you need to pass the fully qualified name of the class On my old version of jade, helloworldagent is located in examples Hello package Therefore, you should specify the program parameter: - GUI testagent: examples hello. HelloWorldAgent.