My first Java project has gotten to the point where there are so many .java
and .class files that I'd like to keep them separated so I can easily keep
files straight. I have my /home/me directory and I want to put my .java
files in /home/me/src and my class files in /home/me/bin. For now, I'm
keeping the .java files in /home/me/src and, after I compile a class, I do
"mv src/*class bin/" to transfer the newly generated .class files into the
bin directory.
Is there any way to tell javac that all .class files should be put in the
bin dir? I can deal with adding "src/" onto my javac commands, although it
would nice to have javac look in a "default" directory for .java files
first, but I'd really like to have the .class files moved over
automatically (it is also a problem when I'm compiling more than one class
at a time when the second class uses new methods in the first class).
Thanks!
Hal