Using sysinfo to check the classpath sysinfo provides an argument (-cp) which can be used to test the classpath. sysinfotesting classpath classpathtesting with sysinfo java org.apache.derby.tools.sysinfo -cp [ [ embedded ][ server ][ client] [ tools ] [ 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:

If something is missing from your classpath, the utility indicates what is missing. For example, if you neglected to include the directory containing the class named SimpleApp in your classpath, the utility would indicate this when the following command line was issued (enter all on one line): $ java org.apache.derby.tools.sysinfo -cp embedded SimpleApp.class FOUND IN CLASS PATH: embedded engine library (derby.jar) NOT FOUND IN CLASS PATH: user-specified class (SimpleApp) (SimpleApp not found.)