Search code examples
javaubuntuagents-jade

Launching Jade In Ubuntu10.04 Linux


When I run the below command in terminal of ubuntu linux and also I set the ClassPath properly but I wasn't successful.

java jade.Boot -gui

I got following errors in terminal window:

15 Jun, 2011 6:33:10 PM jade.core.Runtime beginContainer
INFO: ----------------------------------
    This is JADE snapshot - revision 6357 of 2010/07/06 16:27:34
        downloaded in Open Source, under LGPL restrictions,
        at http://jade.tilab.com/
----------------------------------------
Retrieving CommandDispatcher for platform null
15 Jun, 2011 6:33:11 PM jade.imtp.leap.CommandDispatcher addICP
WARNING: Error adding ICP jade.imtp.leap.JICP.JICPPeer@ae506e[Error: Not possible to     launch JADE on a remote host (127.0.1.1). Check the -host and -local-host options.].
15 Jun, 2011 6:33:11 PM jade.core.AgentContainerImpl joinPlatform
SEVERE: Communication failure while joining agent platform: No ICP active
jade.core.IMTPException: No ICP active
    at jade.imtp.leap.LEAPIMTPManager.initialize(LEAPIMTPManager.java:138)
    at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:316)
    at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:482)
    at jade.core.Runtime.createMainContainer(Runtime.java:165)
    at jade.Boot.main(Boot.java:89)
15 Jun, 2011 6:33:11 PM jade.core.Runtime$1 run
INFO: JADE is closing down now.

help me to recover from this error.


Solution

  • I am so tired of this problem. It is one of many quirks and problems with JADE.

    The problem you are facing is that you need to supply correct host information in the command line. Example

    java jade.Boot -gui -local-host

    This is all described here: http://jade.tilab.com/doc/tutorials/JADEAdmin/startJade.html

    In many cases you don't have this problem and then it is sufficient to use the -gui option only. However I have discovered that Jade does not work very well when your resolves to 127.0.1.1. You can fix this by setting your IP address in or if you are on Linux edit your /etc/hosts file for a more permanent solution.