I am trying to create a small webapp in which i am using an external jar which is compiled in jdk1.4. I have deployed the app in Webspehre process server 6.1. ANd i am getting the error message
"Uncaught exception thrown in one of the service methods of the servlet: RequestHandler. Exception thrown : java.lang.UnsupportedClassVersionError: (com/jcraft/jsch/JSch) bad major version at offset=6"
I did some googling peoples say like i have to change the java compiler/Project facet values to 1.4. I did that still i am getting the same error.
Not sure I understand the problem. You can usually execute a .class file compiled on an old JVM for ever, so a new JVM will execute an old file.
So a file compiled with JDK1.4 should run nicely on Java6, except there might be problems with boxing and unboxing.
The exception you are suffering sounds more as if you are running a .class file compiled with Java6 on an older JVM (eg JDK1.4 or Java5). Have a look at the JVM launcher page and the compiler page and look for the -source and -target options.
subject: Running an external jar compiled in 1.4jdk