apache > db
Apache DB Project
 
Font size:      

Using sysinfo to check the class path

Using sysinfo to check the class path

sysinfo provides an argument (-cp) which can be used to test the class path.

java org.apache.derby.tools.sysinfo -cp
[ [ embedded ][ tools ][ sampleApp] [ anyClass.class ] ]

If your environment is set up correctly, the utility shows output indicating success.

You can provide optional arguments with -cp to test different environments. Optional arguments to -cp are:

  • embedded
  • tools
  • sampleApp
  • classname.class

If something is missing from your class path, the utility indicates what is missing. For example, if you neglected to include the directory containing the class named SimpleApp to your class path, the utility would indicate this when the following command line was issued (type all on one line):

$ java org.apache.derby.tools.sysinfo -cp embedded SimpleApp.class
FOUND IN CLASS PATH:
 
Derby embedded engine library (derby.jar)
 
 
 
NOT FOUND IN CLASS PATH:
 
user-specified class (SimpleApp)
(SimpleApp not found.)

Previous Page
Next Page
Table of Contents
Index