[jdom-interest] UnsupportedClassVersionError when running with JRE 1.4.2

Jason Hunter jhunter at servlets.com
Fri Dec 8 16:24:47 PST 2006


The official distribution was, and is, built against JDK 1.2 to avoid 
this issue.  If you're getting that error it means you're not using the 
JAR we officially distribute.  Why don't you download again and check? 
If you still get the error, you may have a second copy of the JAR 
somewhere like in your std extension directory that you're unaware of.

-jh-

Carsten Schlipf wrote:
> Hi all,
> 
> I intend to use JDOM within a proprietary ESB, which unfortunately is 
> bound to using JRE 1.4.2. Using the jdom.jar from the 1.0 package 
> downloaded from jdom.org (Septemeber 9th) I get this exception:
> 
> java.lang.UnsupportedClassVersionError: org/jdom/JDOMException 
> (Unsupported major.minor version 49.0)
>     at java.lang.ClassLoader.defineClass0(Native Method)
>     at java.lang.ClassLoader.defineClass(Unknown Source)
>     at java.security.SecureClassLoader.defineClass(Unknown Source)
>     at java.net.URLClassLoader.defineClass(Unknown Source)
>     at java.net.URLClassLoader.access$100(Unknown Source)
> ....
> 
> Based on my findings in Google this seems to claim that the 
> JDOMException class was compiled with Java 1.5.x. But I didn't recompile 
> JDOM and I really use the downloaded, unmodified JAR.
> 
> In a former post to this list I even read that JDOM was compiled to be 
> compatible with Java 1.2.
> 
> Any ideas, what the problem could be here?
> 
> Best regards,
> Carsten
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
> 


More information about the jdom-interest mailing list