John Smith
John Smith

Reputation: 276

The Java DB location is not set correctly - netbeans

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.

Upvotes: 11

Views: 21552

Answers (4)

Todd Lail
Todd Lail

Reputation: 1

I downloaded the netbeans with only JavaSE. When I downloaded the full version, uninstalled the JavaSE only version and then installed the full version, I could then find glassfish under ProgramFiles and navigate to the JavaDB directory.

Upvotes: 0

Benny Code
Benny Code

Reputation: 54832

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

Upvotes: 31

John Smith
John Smith

Reputation: 276

just re-installed netbeans, now it works fine, must of just bugged out...

Upvotes: 1

esej
esej

Reputation: 3059

Detailed instructions on how to install(probably unecessary javaDB is part of JDK6), configure and register JavaDB for Netbeans can be found @ Netbeans KB. The steps are basically:

  1. Find where javaDB is installed (search for folder "javadb" ?) or download and install it.
  2. Make/choose a directory to keep the databases in. (So now you have/know two directories)
  3. Register this info with Netbeans by specifying theese two directories.
  4. Test that it works.

Upvotes: 1

Related Questions