109 words

Step 4: Run the Application

You can run the application now by right clicking the Main.java node (in the [Package Explorer] window) and selecting Run As > Java Application.

The expected output in the Eclipse [Console] window, is:

Total Points: 1000
Average X: 499.5

When you run the application for the first time, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation directory. Running the application again will use the existing database file to store an additional 1,000 objects.

You can view the content of the database file by opening it in the ObjectDB Explorer:

This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual.