tools----àConfigure user tools---à  
(1) javac  Menu text :   javac
            Command:   c:\jdk1.2.2\bin\javac.exe
            Argument:   $(FileName)
            Initial directory: c:\
          
          Make “Capture output ” check box be checked. 
          
(2) (2)  java  Menu text :   java
               Command:   c:\jdk1.2.2\bin\java.exe
               Argument:   $(FileNameNoExt)
               Initial directory: c:\
          
              Make “Capture output ” check box be checked.