views:

497

answers:

2

I create new project in Netbeans, but when i look the library it still using JDK 1.6 (default) i want to change into JDK 6 Update 10 but how? i already instal JDK 6 Update 10 but when i import org.hibernate the neatbeans didn't know which library that org.hibernate.

someone can help me? THX

A: 

JDK 1.6 is the current released version.

I really hope you aren't talking about Java 10 there.

And even worse would be if you wanted to use Java 1.1! Which was out over 10 years ago.

JeeBee
+1  A: 

In Netbeans you can define a new Java Platform from Tools > Java Platforms. This brings up the platform manager. At this point you can click the "Add Platform" button and browse to the location of the new platform. You will then have multiple platforms set up and you can configure each project to use the appropriate platform.

To add the hibernate library you can go to Tools > libraries and click "New Library". Then browse to the location of the Hibernate jar files.

Each project can then have th enew library added by right-clicking on the libraries link in the project browser and clicking "Add Library".

Vincent Ramdhanie