Compiling from the default directory.
Im trying to compile java programs without having to change the directory in the DOS prompt. By setting up a classpath to my program directory I can run java programs from the base directory using JAVA, but JAVAC refuses to work saying "error cannot read hi.java" there is definitely a hi.java in the same folder as hi.class
Can anyone tell me how to get it to compile without having to change directory? Is there an Environmental Variable to set up?
Thanks for any help.

