问题
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.
回答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