How to Run JavaDB without using Netbeans?

I'm considering that you created database using some IDE like netbeans or other. Download database with all required file, can be moved in any system directly. http://db.apache.org/derby/derby_downloads.html
Step 1: Download database and copy folder(extracted zip) in your application folder.
Step 2: Copy your database folder in database_path\JavaDB\bin .
HZL is my database folder contain database file.
Note: HZL is my root folder. Don't create new folder in "bin" paste the folder direct. Below figure show contains of HZL folder.
Step 3: Start database server. Open database_path\JavaDB\bin\startnetworkserver.bat file. That will start your database server.
Don't close this command prompt.
Step 4: Stop Server
- - By Pressing cltr+C
- - JavaDB\bin\Stopnetworkserver.bat
You might interested in start database at the start of application by programming.
Execute startnetworkserver.bat using java program. Read further about executing command using java program. http://www.javaquery.com/2011/03/how-to-execute-multiple-command-in.html
grate post!!!
ReplyDeleteThank You!
ReplyDelete