title: Create an agent in JADE
body: <p>I'm having trouble creating an agent with JADE.</p>
  <h3>My structure</h3>
  <pre><code>/
    Applications
      jade
        lib
          jade.jar
          jadeExamples.jar
        src
          examples
            hello
              HelloWorldAgent.class
              HelloWorldAgent.java
  </code></pre>
  <h3>My file <code>HelloWorldAgent.java</code></h3>
  <pre class="lang-java prettyprint-override"><code>package examples.hello;
  
  import jade.core.Agent;
  
  public class HelloWorldAgent extends Agent {
      protected void setup() {
          System.out.println(&quot;Hello! My name is &quot;+getLocalName());
      }
  }
  </code></pre>
  <h3>The steps I follow to create an agent :</h3>
  <ol>
  <li><p><code>/Applications/jade/src/examples/hello $ javac *.java</code></p>
  </li>
  <li><p><code>/Applications/jade/src/examples/hello $ java jade.Boot -gui -agents fred:examples.hello.HelloWorldAgent</code></p>
  </li>
  </ol>
  <h3>Myclasspath</h3>
  <p><code>/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home:/Applications/jade/lib/jade.jar:/Applications/jade/lib/jadeExamples.jar:/Applications/jade/src/</code></p>
  <h3>The output</h3>
  <pre><code>Sep 21, 2019 5:28:05 PM jade.core.Runtime beginContainer
  INFO: ----------------------------------
      This is JADE 4.5.0 - revision 6825 of 23-05-2017 10:06:04
      downloaded in Open Source, under LGPL restrictions,
      at http://jade.tilab.com/
  ----------------------------------------
  Sep 21, 2019 5:28:05 PM jade.imtp.leap.LEAPIMTPManager initialize
  INFO: Listening for intra-platform commands on address:
  - jicp://192.168.1.104:1099
  
  Sep 21, 2019 5:28:06 PM jade.core.BaseService init
  INFO: Service jade.core.management.AgentManagement initialized
  Sep 21, 2019 5:28:06 PM jade.core.BaseService init
  INFO: Service jade.core.messaging.Messaging initialized
  Sep 21, 2019 5:28:06 PM jade.core.BaseService init
  INFO: Service jade.core.resource.ResourceManagement initialized
  Sep 21, 2019 5:28:06 PM jade.core.BaseService init
  INFO: Service jade.core.mobility.AgentMobility initialized
  Sep 21, 2019 5:28:06 PM jade.core.BaseService init
  INFO: Service jade.core.event.Notification initialized
  Sep 21, 2019 5:28:11 PM jade.mtp.http.HTTPServer &lt;init&gt;
  INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
  Sep 21, 2019 5:28:11 PM jade.core.messaging.MessagingService boot
  INFO: MTP addresses:
  http://192.168.1.104:7778/acc
  Hello World! My name is fred
  Sep 21, 2019 5:28:11 PM jade.core.AgentContainerImpl joinPlatform
  INFO: --------------------------------------
  Agent container Main-Container@192.168.1.104 is ready.
  --------------------------------------------
  </code></pre>
  <h3>My problem</h3>
  <p>If I change the message in the HelloWorldAgent (e.g. <code>System.out.println(&quot;Hello ! My name is &quot;+getLocalName());</code>), it doesn't update when I run my agent (the console says <code>Hello World! My name is fred</code>). And when I create a new class in the hello folder, I can't find my agent in the GUI.</p>
  <p>What have I missed?</p>