ObjectDB ObjectDB

Step 1: Create a Java EE Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans:

  • Open the [New Project] dialog box, e.g. by using File > New Project...
  • Select Java Web > Web Application and click Next.
  • Choose a Project Name (e.g. Guestbook) and click Next.
  • Select GlassFish Server 3 (or above) and Java EE 6 Web and click Next.
  • Click the Finish button to create the project (Frameworks are not required).

To add ObjectDB/JPA support for the project:

  • Right click the Libraries folder in the [Projects] window and select Add Jar/Folder...
  • Select the objectdb.jar file from the bin subdirectory of the ObjectDB installation directory and click Open.

Now you should have a NetBeans Java EE 6 Web Application project with ObjectDB/JPA support.

The next step is creating a JPA Entity class.