Can you explain what your problem is?

If you know the location of the javac command, you can compile your program using the full path to the compiler:
C:\Java\jdk1.6\bin\javac.exe ...