Java.lang.ClassFormatError:Bad major version number

Hi

I am developed a chat program using applet. I am packaged all classes and put it in a jar file.

I am using JDK1.4.1 for developing this. It works fine in some systems. But It show the following errors

in some other systems

It shows the following error in Netscape Navigator 4.7

Java.lang.ClassFormatError:Bad major version number

and in the Internet Explorer5.5

Class Not fount

Pleas Help me

[460 byte] By [subinvv] at [2007-9-27 16:03:52]
# 1

You have to remember that the applet will use the jre on the client. Not all browsers will support jdk1.4. It would be safer to code in jdk1.2 that most of the browsers do support. The other alternative is using Java Plug-in (http://java.sun.com/products/plugin/index-1.4.html). The downside to this is that if the client hasn't already downloaded the plug in they will have to download it first (the download is quite large).

Hope this helps

nsrussell at 2007-7-6 0:22:40 > top of Java-index,Archived Forums,Java Programming...