users@jersey.java.net

Re: [Jersey] Jersey 1.3 requires Java 6?

From: Pavel Bucek <Pavel.Bucek_at_Sun.COM>
Date: Tue, 07 Sep 2010 15:05:17 +0200

  On 9/7/10 2:36 PM, stephen_at_eekboom.de wrote:
>
> I am just trying to get started with Jersey 1.3 using jar files
> downloaded from the links in the user guide.
>
> However compilation of my app fails with Java 5:
>
> D:\projekte\...\GuiceConfig.java
> Error:Error:line (7)cannot access
> com.sun.jersey.api.core.PackagesResourceConfig
> bad class file:
> D:\projekte\jamyguice\lib\jersey\jersey-server-1.3.jar(com/sun/jersey/api/core/PackagesResourceConfig.class)
> class file has wrong version 50.0, should be 49.0
> Please remove or make sure it appears in the correct subdirectory of
> the classpath.
>
> Is Java 6 dependency a bug in the build process or a real requirement?
>
real requirement; Jersey is part of EE6 and related api jars are
compiled with JDK 6 so we have to use it too.

Pavel