21

I get this error when using NetBeans:

The Java DB location is not set correctly.

Can somebody help?

rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
thathashd
  • 1,022
  • 4
  • 17
  • 49
  • [Why is "Can someone help me?" not an actual question?](https://meta.stackoverflow.com/questions/284236/why-is-can-someone-help-me-not-an-actual-question) – Robert Columbia Jul 18 '18 at 02:10

4 Answers4

71

I came across the same error message whenever starting the GlassFish. It was because the Java DB path had changed. (My previous install was glassfish-3.1.1/javadb)

You can set up the correct path in the Java DB properties.

The Java DB Properties Menu

YoonHo
  • 1,046
  • 9
  • 10
  • same here: http://stackoverflow.com/questions/10371325/the-java-db-location-is-not-set-correctly-netbeans – salocinx Jun 03 '16 at 09:30
5

I had the same problem on my Mac, debugging an app on GlassFish 3.1 which comes standard with NetBeans 7.0.1. This link gave me the answer I needed:

http://forums.netbeans.org/ptopic21916.html

The JavaDB path, as set in a clean installation, was pointing at an older version of GlassFish. Basically a configuration management issue it seems.

Dion Truter
  • 7,592
  • 1
  • 19
  • 9
0

By default, it takes the C: drive path while installation. If you give your specific path(other than C: Drive), it prompts that pop up

thecoot_11
  • 11
  • 4
0

I had a similar problem. When i right clicked to create the database the option was not enabled. I then clicked in properties and the 'Java DB installation' and 'Database location' fields were blank.

This link helped me solve the issue: https://docs.oracle.com/cd/E19798-01/821-1770/gioew/index.html

Basically GlassFish server didn't come with the installation of NetBeans pack, that's why i had to follow the instructions in the link to install the server. After the installation finished the 'Java DB installation' and 'Database location' fields were already filled with the correct path.

Nando
  • 73
  • 5