Why am I getting this compilation warning in Netbeans?

I am working on a Java-EE project involving Glassfish 3.1.2.2, and the client component is running Java 7 Update 21. The Swing client was previously based on Java 6 Update 38, until we decided to upgrade to the new Java 7 21 Update.

I get the following compilation warning in Netbeans 7.3:

warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7' 

At this point, the compilation process hangs for about 1 minute.

Btw, we still have the javaee-api-6.0.jar link provided by the Netbeans platform (I think there is no javaee-api-7.0.jar yet?)

Does anyone know the reason for this warning and how can I get rid of it?

Any help is much appreciated - thanks a lot in advance.

+6
source share
3 answers

It seems (I think) that the eclipseLink annotation processing for JPA has been updated to Java 6. You can create a Java 6 library with JPA sources, and only there it uses the eclipseLink annotation processing. Having a library will never hurt, and later you can upgrade to Java 7 yourself.

It is not possible to create an image using the greater Java 7 functionality in JPA sources.

+4
source

Java version 7 has more features than Java 6. In netbeans, go to Tools → Java Platforms and check if your netbeans are tied to the latest version of JAVA.

+3
source

I added an unwanted library, firstly, you should check your library of your project and delete unnecessary files there. On the other hand, you can try again by copying only JFrames and Main Classes into a new project. But one thing, you have to replace the package name as the new name.

0
source

Source: https://habr.com/ru/post/943967/


All Articles