Annotations not supported in -source1.3 (use -source 5 or higher ..)

#1

objectdb-2.2.5_03

Netbeans IDE6.9.1

java version "1.6.0_24": as user running Netbeans

java version "1.5.0_28": as su running maven mvn

Maven version: 2.0.8

Firstly, I followed the instructions to build the points example from Maven, but on opening it in Netbeans 6.9.1 I got an error in Points.java and other files:

Annotations not supported in -source1.3 (use -source 5 or higher ..)

Generics not supported in -source1.3 (use -source 5 or higher ..)

(Note that the version of Java I ran Maven as is different from that I ran Netbeans to load the built points project, but I can't see that this could explain the error)

I could not figure out how to fix this in the points project in Netbeans, I did not find a setting for the Java version there, so I created a fresh basic Java Application in Netbeans and copied the points package over into it, and added the objectdb.jar library and it compiled and ran.

The matter is a bit academic now, and I have not solved it in the points project as built from maven, however I thought to share it here in case others encounter the same problem.

Webel

#2

Thanks - that was just fixed in build 2.2.5_04.

ObjectDB Support

Reply