...
- Start JAS
- Choose View, Preferences
- In the preferences tree select Java/Compiler
- On the Java Compiler Preferences page click the Browse... button next to the compiler option. Use the file browser to locate javac.exe. Normally this would be somewhere like c:\Program Files\Java\jdk1.5.0\bin\javac.exe
After this the compiler should work.