How can I set my map where I keep my sourcecode as the default map for my java-files. Now I have to type the entire path every time I want to compile a class in my terminal. I'm know this is a rather stupid question but I'm craving an answer. I only just migrated to OS X from WinXP and am trying to figure things out. Didn't find an answer in this forum either, but that can be due to my bad search-abilities.
You can specify your source directory on the classpath or specify the source directory with -sourcepath (see "Searching for Types" in the javac documentation). I highly recommend Ant for automating the build process. It can get code out of a repository, compile, build, package, FTP, and much, much more.