Yes, see #23.
Here's the deal. You can run the javac and java commands from WHEREEVER you want.
If your pwd (your current working directory) is the same as where the files reside, you can let the PATH and -CP default. In other words, there is no need to specify them.
If your pwd is different from where the files reside, you'll need to specify the path/filename.java in the javac command, and specify the CLASS PATH for the java command. As mentioned above, there are different ways to tell Java your CLASSPATH preference. (The environment variable or the -cp switch on the java command itself.)
Now, I typed this REAL slow so it would be clear! LOL
Todd