Running Jade on Ubuntu 10.04 Linux

When I run the command below in the ubuntu linux terminal, I also correctly configured ClassPath, but I was not successful.

java jade.Boot -gui 

In the terminal window, I received the following errors:

 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 fix this error.

+7
source share
5 answers

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

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

java jade.Boot -gui -local-host

All of this is described here: http://jade.tilab.com/doc/tutorials/JADEAdmin/startJade.html

In many cases, you do not have this problem, and then just use the -gui option. However, I found that Jade does not work very well when you resolve 127.0.1.1. You can fix this by setting your IP address or if you are editing the / etc / hosts file on Linux for a more permanent solution.

+6
source

just enter the path jade ..

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

(JADE has some problems to set the local host address)

+4
source

The problem may be that the previous java process may still be running on the local port. Be sure to check if the port is used or not if it is used to kill the Java process before restarting.

+3
source

It's simple.

Change / etc / hosts

Change the line for address 127.0.0.1 as follows:

127.0.0.1 localhost.localdomain localhost <machine_name>

Delete or comment out a line using 127.0.1.1:

# 127.0.1.1 <machine_name>

and you're done.

+1
source

The error is not in jade . This is the error jade used to run the default parameters using the bugged java method, which must be fixed .

When jade starts the java method, it will return 127.0.1.1 instead of the reverse loop of 127.0.0.1 .

I say this because I tested. I read the JADE src that did this and I executed a Java method that I don't remember now.

Unfortunately, this happens on several Linux machines. I did not see this in the windows.

What I did to solve this problem was to edit the / etc / hosts file, for example:

Original file:

  127.0.0.1 localhost 127.0.1.1 machine-name 

Modified file:

  127.0.0.1 localhost machine-name 127.0.1.1 machine-name 

What I did was to specify a machine name alias on the return IP address. This circumvents the error.

0
source

All Articles