How to manually specify the derby.system.home property to start a derby server

戏子无情 提交于 2021-01-28 12:02:08

问题


I want to know a command to both Windows and Unix to start a Derby server at localhost:1527 but with an specific derby.system.home property

From here I could only understand to set the locations, the paths Java and Derby installation.

And the only thing about derby.system.home I found was this.

Basically, I need a command to start the server the same way Netbeans does.

enter image description here


回答1:


Assuming that you are starting the Derby Network Server using a technique similar to the ones documented in the Derby manuals (http://db.apache.org/derby/docs/10.11/getstart/twwdactivity2.html), you can control the derby.system.home value simply by adding:

-Dderby.system.home=/my/derby/home/dir

on the command line that you use to start the Derby Network Server.

If you're just getting started with the Derby Network Server, may I recommend working through the Derby "Getting Started" documentation at: http://db.apache.org/derby/docs/10.11/getstart/



来源:https://stackoverflow.com/questions/26624031/how-to-manually-specify-the-derby-system-home-property-to-start-a-derby-server

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