I installed JVM and am running jdk1.7.0

I can only get my code to run when I run it out of the bin folder. I want to put my .java files in a folder on my desktop but whenever I take my programs...