users@jersey.java.net

[Jersey] Re: Jersey running environment

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 31 May 2011 10:00:11 +0200

Hello ChengJiang,

Jersey 1.3+ requires JDK 6, so you have to use 1.2 or older version.

Regards,
Pavel

On 5/31/11 7:29 AM, jiangcheng198745_at_sina.com wrote:
>
> Hello all,
>
> I am studying the jersey, I got a problem about this , I use the
> jersey1.6 on jdk1.5 , I got the exception is
>
> "java.lang.UnsupportedClassVersionError: Bad version number in .class
> file (unable to load class
> com.sun.jersey.spi.container.servlet.ServletContainer)",
>
> But When I change all the environment into jdk1.6 , the issue display.
> (What I changed is environment anf server environment All of them use
> the same JDK version)
>
> Is it my environment issue or the jersey1.6 can't run on JDK1.5 , If
> it can't run on 1.5 , could you tell me which version can run on JDK1.5
>
> Best Wish
>
> ChengJiang
>