Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 430
Karthick Kathiresan Avatar asked Jun 15 '11 14:06

Karthick Kathiresan


4 Answers

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.

like image 50
Tarjei Romtveit Avatar answered Sep 19 '22 03:09

Tarjei Romtveit


just type in JADE path..

java -cp lib/jade.jar jade.Boot -gui -local-host 127.0.0.1

(JADE has some problems to set local host adress)

like image 30
tosco Avatar answered Sep 19 '22 03:09

tosco


The problem might be is previous java process might be still running on the local port , Make sure to check if port is in use or not if in use kill the java process before you rerun.

like image 32
Nancharanag Avatar answered Sep 19 '22 03:09

Nancharanag


It's simple.

Modify /etc/hosts

Modify the line for the address 127.0.0.1, as follows:

127.0.0.1 localhost.localdomain localhost <machine_name>

Remove or comment the line with 127.0.1.1:

# 127.0.1.1 <machine_name>

and you're done.

like image 33
Hector Mauricio Gonzalez Avatar answered Sep 21 '22 03:09

Hector Mauricio Gonzalez