rt.jar Version Mismatch
Posted on 2006-07-19
I was using jdk 1.4.2. Today I uninstalled it and installed jdk 1.6. Again I uninstalled JDK 1.6 and now I installed jdk1.5 with netbeans.
I am using ant script for building. whenevr i tried to build using ant it is giving an error like this(Previously in jdk 1.4 it same code was working fine.)
[delete] Deleting directory C:\san\classes
[mkdir] Created dir: C:\san\classes
[mkdir] Created dir: C:\san\classes\res
[javac] Compiling 34 source files to C:\Geneva CRM\classes
[javac] C:\san\src\gstl\san\Main.java:16: cannot access javax.swing.
[javac] bad class file: C:\jdk1.5.0_07\jre\lib\rt.jar(javax/swing/JFrame.cla
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of
[javac] public class Main extends JFrame implements ActionListener,WindowLis
[javac] 1 error
C:\san\build.xml:32: Compile failed; see the compiler error output for de
Total time: 2 seconds
I am not getting what the error is. Can any body help me as soon as possible. I am doing an important project work now.