Well that info is cool, but he will have to set the path all the time he opens his command line. if he close it, blam his path has gone. also he wont be able to run any other command on the command line apart from the commands in java/bin. why not make life easier, add the path to the environment variables, so u don't have to do that everytime, Its been long since I do any windows but I think some guys here can help out, or better still visit
http://naijadukes.com thats a purely java forum.
My other solution is create a batch file and place it in your windows/system32 folder(I hope windows still uses system32

). Creating a batch file is also easy
1. start notepad
2 Type the following commands
c:\pathtojavabindir\javac
NOTE: That if your path is in program files like C:\Program Files\ you might consider typing
c:\Progra~1\java\, instead. I don't know if later windows have resolved that problem but to be on the safe side, just use Progra~1 instead of Program Files
3. save the file as javac.bat (make sure u select "all files" somewhere in Notepad save dialog).
now as u power on ur command line, to compile just type javac yourfilename.java
Now to run the file, type java yourfilename (without the extension). Mordern jdk's already put java in your path
But if peradventure you get and error message that java is not recognised or something like that, just repeat the steps above, replacing javac with java
chikena
ciao