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.

