Project that Imports Other Netbeans Projects

Asked

Viewed 168 times

8

I have a project where is the whole part of Hibernate configuration. In the final project I will have some more projects (Personal Registration for example) that will need the project that has Hibernate.

How to properly configure the Hibernate project import in other projects?

At first the configuration I made worked, when I am programming in the Person Registration project I can access the classes and methods of the Hibernate project as well as access the classes and methods of lib that are there configured.

The problem that when I run the application is giving classNotFound.

  • You went to project properties in the Libraries -> Compile part and added the project where the Hibernate configuration is?

  • Yes! I think the way will be to follow the @Nilson-Uehara tip!

  • You’ll find that Maven helps a lot. Good luck! (Don’t forget to mark the answer as accepted)

1 answer

6


You need to create a JAR from the Hibernate project to use it as a dependency on the register project. It gets easier using Maven.

Take a look at this video, made by Éder Magalhães of Yaw:

Maven multi modules

Browser other questions tagged

You are not signed in. Login or sign up in order to post.