How to use org.hibernate library in java?

I create a new project in Netbeans but when I look at the library it still uses JDK 1.6 (default), I want to change JDK 6 Update 10, but how? I already installed JDK 6 Update 10, but when I import org.hibernate neatbeans didn't know which library org.hibernate was in.

can someone help me? thank

0


source to share


2 answers


In Netbeans, you can define a new Java platform from Tools> Java Platforms. This calls the platform manager. At this point, you can click the Add Platform button and navigate to the location of the new platform. Then you set up multiple platforms, and you can set up each project to use the corresponding platform.

To add a hibernate library, go to Tools> Libraries and click New Library. Then navigate to the location of the hibernate hibernate disk files.



Each project can then add this library by right-clicking on the libraries link in the Project Explorer and clicking Add Library.

+1


source


JDK 1.6 is the current version.

I really hope you are not talking about Java 10 there.



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

0


source







All Articles