Starting ij

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 %%/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 as a database server, start the server before connecting to the database. You can start ij by running the ij scripts in the /frameworks/embedded/bin/ directory or in the /frameworks/NetworkServer/bin/ directory.

To start ij, run the script provided or use this command: java [<options>] org.apache.derby.tools.ij [-p <propertyFile>] [<inputFile>]The command line items are:
  • java

    The JVM you want to run (java is the name of the JVM program).

  • options

    The options that the JVM uses. You can use the -D command to set ij properties (see ) or system properties, such as properties.

  • propertyFile

    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.

  • inputFile

    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 .