Dear all,
Thank you very much for your help every thing goes well now, and the following steps describe how to deploy java application uses derby db with embedded driver connection:
- add derby.jar into project libraries
- use Embedded driver by calling Class.forName("org.apache.derby.jdbc.EmbeddedDrive r");
- add the string ";create=true" after the db name when using DriverManager.getConnection to get the connection
- build the project in order to get the project's jar file and libraries in the dist directory
- to start the java db server without netbeans you can refer to :
Getting Started with Derby, or simply use the command
"java -jar derbyrun.jar server start", but first you should set the DERBY_HOME environment variable