When i am building the
java project with jre 1.4.2 in windows machine
and porting the jar(java project) into solaris environment where the jdk 1.4.2_19 is installed,
i need to refer this jar file while compiling some other java code, and i am getting the following error in solaris machine( jdk 1.4.2_19 ).
BandData.java:19: cannot access com.servion.BandingApp
bad class file: /usr/appn/HDFC/BandingApp.jar(com/servion/BandingApp.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import com.servion.BandingApp;
^
1 error
JAVA CODE IS COMPILED
Exception in
thread "main" java.lang.ClassFormatError: The major.minor version '
49.0' is too recent for this tool to understand.
at sun.tools.java.BinaryClass.load(BinaryClass.java:105)
at sun.tools.java.BinaryClass.load(BinaryClass.java:85)
at com.sun.tools.javah.oldjavah.JavahEnvironment.getClass(JavahEnvironme
nt.java:172)
at com.sun.tools.javah.oldjavah.JavahEnvironment.getAllFields(JavahEnvir
onment.java:89)
at com.sun.tools.javah.oldjavah.JNI.write(JNI.java:38)
at com.sun.tools.javah.oldjavah.Gen.run(Gen.java:149)
at com.sun.tools.javah.oldjavah.Main.run(Main.java:174)
at com.sun.tools.javah.oldjavah.Main.main(Main.java:41)
at com.sun.tools.javah.Main.main(Main.java:40)
can anybody help me regarding this.