Marc
Marc

Reputation: 16512

How to change the java platform to 1.5 when you have 1.6 in netbeans

I have to install object store for a school project and it doesn't work with the 1.6 jdk. So I have this error:

Error: The format of class 'inventairePackage/Joueur' is of type JDK 1.6.  
Classes of this format cannot be currently annotated.

I use Netbeans and I don't know how to change the Java Platform because when I try to install the 1.5 jdk, it says that I can't because I use a higher version and in Netbeans I just have the option for the 1.6 jdk.

Thank you

Upvotes: 1

Views: 1159

Answers (2)

Marc
Marc

Reputation: 16512

Finally I downloaded from talnicolas' link to oracle downloads and everything works now.

Thank you.

Upvotes: 2

madth3
madth3

Reputation: 7344

Try switching the Source Binary Format to JDK 5 in your project properties. (You don't need to have JDK 5 installed for this)

Upvotes: 2

Related Questions