The Java DB location is not set correctly - netbeans

John Smith picture John Smith · Apr 29, 2012 · Viewed 18.9k times · Source

I have checked the services tab to the left and there isn't a javaDB in the database option, there's nothing in there? i'm using jsp's and beans, is there something i'm doing wrong?.

i'm getting the message

The Java DB location is not set correctly

when i run my jsp for the first time.

Answer

Benny Neugebauer picture Benny Neugebauer · Dec 16, 2012

You have to make sure that the paths to the Java DB are actually available!

To do this please do the following:

  1. Click on "Windows" - "Services"
  2. Expand "Databases"
  3. Select "Java DB"
  4. Do a right-click and select "Properties..."
  5. Make sure that the locations are valid!

Sample paths

Java DB Installation: C:\glassfish\glassfish-3.1.2.2\javadb

Database Location: C:\Users\YourUsername.netbeans-derby

Screenshot:

enter image description here