Ensure that the environment JAVA_HOME points to your JDK 1.5 installation directory's root. Ensure that the environment variables PATH includes the same path/bin.
Example: installed into c:\jdk1.5
JAVA_HOME=c:\jdk1.5
PATH=c:\jdk1.5\bin
(Note: do not remove the other elements in your PATH variable, or Windows may have trouble finding other applications. Separate path elements with a semi-colon).
- Saish