简体   繁体   中英

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

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

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

Thank you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM