Apt UnsupportedClassVersionError
I have been trying to compile the samples that came with the jaxws-ri download but I keep getting the following error:
BUILD FAILED
C:\jaxws-ri\samples\annotations\build.xml:53: java.lang.UnsupportedClassVersionError: com/sun/tools/ws/ant/Apt (Unsupported major.minor version 49.0)
I am getting the error because I am using the wrong java version;
My JAVA_HOME is set to "C:\j2sdk1.4.2_08" but when I type "java -version" to DOS it displays:
java version"1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)
In C:\Program Files\Java I have the following installed:
j2re1.4.2_08
jdk1.5.0_09
jdk1.5.0_11
jre1.5.0_09
jre1.5.0_11
Why is this so? Do I have the wrong version of java?
What's going on?
I would be grateful for any replies, thank you.

