powered by Jive Software

Problems with java versions

Hi

I’'m running a Jive Messenger server, and have written a little Java applet using Smack that communicates with the server. Mostly, everything works fine (and great products, by the way ).

However, when I try to run the applet on some machines, it gives me this error:

“java.lang.UnsupportedClassVersionError: Smackchat (Unsupported major.minor version 49.0)”

I assume this is something to do with the version of Java the client is using…? Does Smack require Java 1.5 to be running on the client’‘s computer, or am I doing something wrong? If Smack does require this, is there any previous version that I could use that wouldn’'t require it?

Thanks in advance,

Matt

matt_,

It sounds like you’‘re compiling the applet with JDK 1.5. If you do that, you should use “-target 1.4” or “-target 1.3” to make sure that the applet will work with earlier JVM’'s. See:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html

Regards,

Matt

Great, thanks for the quick response