The Java DB location is not set correctly - netbeans

ぐ巨炮叔叔 提交于 2019-12-08 18:35:12

问题


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.


回答1:


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:




回答2:


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.



回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/10371325/the-java-db-location-is-not-set-correctly-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!