Have you set your path setting? The path should point to the bin folder. An
example:
set path=%path%;c:\jdk1.4.2\bin;
Once you have set that, you should be able to compile your programs from any
folder. Ofcourse, depending on your operating system, the way to set the
environment variables would be slightly different. Hope this helps.