Do you have Oracle software installed on your machine?
Oracle has the bad habit of supplying a Java version 1.3 JRE with their software. Check the setting of the PATH environment variable. Make sure that you remove the Oracle JRE from the PATH, and make sure that the bin directory your Java 1.4.2 JDK is in the PATH.
For instructions on setting the PATH, see the
JDK installation notes (step 5 explains how to set the PATH).