powered by Jive Software

Issue with Smack 1.4.1 - Compiled with JDK 1.5?

I downloaded 1.4.1 of Smack, and when I tried to recompile my classes using JDK 1.2.2 (which is our base), I got the following error:

import org.jivesoftware.smack.packet.XMPPError;


error: Invalid class file format in /us1/cm/sysinfra/jar/smack.jar(org/jivesoftware/smack/packet/IQ.class). The major.minor version ‘‘49.0’’ is too recent for this tool to understand.

From what I can tell, this means the class was compiled with JDK 1.5, which generates class files (by default) that are incompatible with earlier versions of Java.


We fixed this bug by passing in 1.3 as the target bytecode version in the build scripts. I uploadeed new 1.4.1 binaries – please let me know if they work!




Looks like that fixed things. I had no trouble compiling or running with these new Jar files.