javac] class file has wrong version 48.0, should be 47.0

I am using ANT to compile a set of Java files and came across the following error:-

[javac] badclass file: /usr/local/packages/jdk1.4.0/jre/lib/rt.jar(java/io/BufferedReader.class)

[javac]class file has wrong version 48.0, should be 47.0

[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.

[javac]import java.io.BufferedReader;

[javac]^

[javac] 1 error

BUILD FAILED

I changed the jdk version to jdk1.3_02, this resolved the problem but then I got another error:

[javac] /ade/pgangwal_ocs/oracle/ocs/install/libraries/queries/IfsQueries/src/getLanguage.java:30: cannot resolve symbol

[javac] symbol :class LinkedHashMap

[javac] location:package util

[javac]import java.util.LinkedHashMap;

[javac]

The compilation of this java file requires higher version of jdk because LinkedHashMap is available from jdk1.4 onwards. Now, how can I solve this problem.

Any pointers on this will be highly appreciated.

Thanks in advance,

Prateek.

[1283 byte] By [prateek_gangwala] at [2007-10-1 12:39:54]
# 1
If you need java 1.4 I suggest you use java 1.4You can get the source for java 1.4 and compile LinkedHashMap for java 1.3However, given java 1.3.x is EOL, I would suggest upgraing to 1.4.2_08 or 1.5.0_02
Peter-Lawreya at 2007-7-10 15:02:23 > top of Java-index,Developer Tools,Java Compiler...