Automatically Starting/Connecting a Derby Database When Application is Run?

whenever i run my application i first have to manually start my database. what i want is for my derby database to start automatically when i run my application. i found an article about starting derby databases but im really confused. heres the article http://docs.sun.com/app/docs/doc/819-4707/6n6re4ime?a=view

i looked at Starting and Stopping the Derby Database, Derby Utility Scripts and To Configure Your Environment to Run the Derby Utility Scripts. any1 know where i have to put start-database [--dbhost 0.0.0.0] [--dbport 1527] [--dbhome path/derby]

and stop-database [--dbhost 0.0.0.0] [--dbport 1527]

?

[671 byte] By [Alex1989a] at [2007-11-27 11:17:16]
# 1

anyone?

Alex1989a at 2007-7-29 14:23:57 > top of Java-index,Java Essentials,Java Programming...