MultiTask70
MultiTask70

Reputation: 61

Error compiling Jersey library different Java version

I just finished a program "Maven java project". I am using Jersey library/.

I need to compile and run my program in java 1.4.

I am changing the compliance to 1.4 in Eclipse.

plus adapting the pom.xml

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.3</version>
    <configuration>
      <source>1.8</source>
      <target>1.4</target>
    </configuration>
  </plugin>
</plugins>

Now I am getting errors concerning certain classes:

code showing the error

Error 2 jersey and java 1.4

Any help would be much appreciated!!!

Upvotes: 0

Views: 101

Answers (1)

Remi
Remi

Reputation: 151

Jersey is not compatible with Java 1.4. Neither is the <> syntax. You really should at least use java 1.6.

Upvotes: 1

Related Questions