If you are using Java 5 (aka Java 1.5) then the compiler built into JAS will not work. Instead you must use an external Java compiler. To fix this:
- 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.