title: How can I run my java class from the project root directory
body: <p>I am compiling and running my Java project from the command line rather than eclipse for the first time and have a slight inconvenience that I just can't seem to find a solution too.</p>
  
  <p>My project has a standard structure:</p>
  
  <p>Project Directory</p>
  
  <pre><code>   /src
  
        /self
  
           /redway
  
              /myAPP.java
  
     /bin
     /libs
  </code></pre>
  
  <p>So I compiled using:</p>
  
  <pre><code>javac -sourcepath src src/self/redway/myApp.java -d bin
  </code></pre>
  
  <p>and so far so good...</p>
  
  <p>I can run the program by navigating to the /bin and then just typing</p>
  
  <pre><code>java self.redway.myApp
  </code></pre>
  
  <p>BUT and this is really annoying. How do I run it from my project root directory?</p>
  
  <p>I tried just </p>
  
  <pre><code>java bin/self.redway.myApp
  </code></pre>
  
  <p>and some other obvious ideas to no avail. I know it is a minor thing but it is super irritating and I'm sure there is a simple answer which I should have spotted immediately but I just can't find it! </p>
  
  <p>Thanks.</p>