title: Running a jade program without a main class
body: <p>I have a simple maven project with the Code below.  </p>
  
  <pre><code>import jade.core.Agent;
  public class HelloAgent extends Agent 
  { 
      protected void setup() 
      { 
          System.out.println(getLocalName()); 
      }
  }
  </code></pre>
  
  <p>How do I run this program?. When i right click to run it, I dont see a run as Java Application.
  I am following the tutorial here </p>
  
  <pre><code>http://www.iro.umontreal.ca/~vaucher/Agents/Jade/primer2.html
  
  % javac HelloAgent.java 
  % java jade.Boot fred:HelloAgent
  </code></pre>
  
  <p>Output </p>
  
  <pre><code>fred
  </code></pre>