title: javac compile files from folder A to folder B ( linux )
body: <p>I have a small java project. And i want to keep a structure in how the files are organized in my project folder.</p>
  
  <p>There are 3 folders: <code>bin/</code>, <code>res/</code> and <code>src/</code>.
  In src are all source files.
  In res are some resources like textfiles to be printed are files that are saved during runtime.
  And in bin is where all the binarys should be.</p>
  
  <p>I found out, that i can compile my sourcefiles with the -d argument to the bin folder.</p>
  
  <p><code>javac -d bin src/*.java</code></p>
  
  <p>But I can't run <code>java bin/Main</code> from my project folder it gives me a classnotfound error.
  (Going in <code>bin</code> and then run <code>java Main</code> works. why??)</p>
  
  <p>Second problem is, that res files are only accessible when <code>res/</code> is in <code>bin/</code>. I want it kind of like in Eclipse. In the sourcecode files in <code>res/</code> are used like the executor is in the project folder.</p>
  
  <p>I hope you understand what i'm trying to do. And thanks for any help!</p>