title: NetBeans - Java EE server classpath is not correctly set up - server home directory is missing error
body: <p>I am getting an error when I try to build my project in NetBeans. I am using JBoss 5.1.0 server and have attached that to my project. The error is - </p>
  
  <pre><code>The following error occurred while executing this line:
  .../myPath/build-impl.xml:176: The Java EE server classpath is not correctly set up -      server home directory is missing.
  Either open the project in the IDE and assign the server or setup the server classpath manually.
  For example like this:
  ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
  </code></pre>
  
  <p>I am using Mac OS X Lion.</p>