开发者

how can i delete javaDB database folder

I am using JavaDB in my application,different database files are created on each operations and i want to delete all database files at the close of application but on close database folder not deleted from file system path using file method like(FileUtils.forceDelete(File)). In data base folder i have one .lck file may be due to this file database folder is not deleted and in application i have closed all open connections related to t开发者_如何转开发hese database. so how can i delete JavaDB database folders. is needed for my application. is any body have idea related to this issue.


Go to your application folder (if you use NetBeans it will on your NetBeans Project folder), you will find a folder with your database name there. Delete it.

Hope this helps.


Are you running JavaDB as a service? If yes, you have to shut it down before you can delete the db folders.

java -jar derbynet.jar shutdown
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜