Tools 
-> Configure User Tools 
-> Group Name... "Java" 
-> Add Tool>> 
-> Menu text "javac"
-> Command "javac.exe"
-> Argument "$(FileName)"
-> Initial directory "$(FileDir)"
-> Capture output-> Add Tool>> 
-> Menu text "javac"
-> Command "java.exe"
-> Argument "$(FileNameNoExt)
-> Initial directory "$(FileDir)"
-> Capture output