Search code examples
javaagents-jade

Java Jade : not displaying in console


I begun learning Jade platform, I created a first simple agent but it doesn't display anything in the console.

package firstJade;

import jade.core.Agent;

public class firstAgent extends Agent {

    @Override
    protected void setup(){
        System.out.println("hello Jade !");
        System.out.println("my agent name is " + getLocalName());
        doDelete();
    }
}

After running the Jade remote window does open but the messages in my code doesn't appear

INFOS: --------------------------------------

Agent container Main-Container@192.168.1.81 is ready.


Solution

  • Your arguments are incorrect. if you are running from eclipse than try below;

    -gui firstAgent:firstJade.firstAgent
    

    or

    -gui -agents firstAgent:firstJade.firstAgent
    

    If you run it from command line then you will need to add jade.Boot main class name after -cp classpath but before -gui option.