Derby provides batch and shell scripts for users in Windows and UNIX environments. If you put the appropriate script in your path, you will be able to start ij with a simple command. These scripts use the ij.protocol property, which automatically loads a driver and simplifies the process of connecting to a database. The scripts are found in the %DERBY_INSTALL%/bin/ directory. You can also customize the ij scripts to suit your environment.
If you are starting ij from a command line, be sure that the derbytools.jar file is in your classpath. If you are using Derby as a database server, start the server before connecting to the Derby database. You can start ij by running the ij scripts in the /frameworks/embedded/bin/ directory or in the /frameworks/NetworkServer/bin/ directory.
java [<options>] org.apache.derby.tools.ij [-p <propertyFile>] [<inputFile>]The command line items are:
The JVM you want to run (java is the name of the JVM program).
The options that the JVM uses. You can use the -D command to set ij properties (see Starting ij using properties) or system properties, such as Derby properties.
A file you can use to set ij properties (instead of the -D command). The property file should be in the format created by the java.tools.Properties.save methods, which is the same format as the derby.properties file.
A file from which to read commands. The ij tool exits at the end of the file or an exit command. Using an input file causes ij to print out the commands as it runs them. If you reroute standard input, ij does not print out the commands. If you do not supply an input file, ij reads from the standard input.
For detailed information about ij commands, see ij commands and errors reference.