# sysinfo

Use the `sysinfo` utility to display information about your Java environment and Derby (including version information).

To use `sysinfo`, do one of the following:

- If you are relatively new to the Java programming language, follow the instructions in "Setting up your environment" in Getting Started with Derby to set the `DERBY_HOME` and `JAVA_HOME` environment variables and to add `DERBY_HOME/bin` to your path. Then use the following command:

      sysinfo

- If you are a regular Java user but are new to Derby, set the `DERBY_HOME` environment variable, then use a `java` command to invoke the `derbyrun.jar` file:

      (UNIX) java [options] -jar $DERBY_HOME/lib/derbyrun.jar sysinfo

      (Windows) java [options] -jar %DERBY_HOME%\lib\derbyrun.jar sysinfo

- If you are familiar with both the Java programming language and Derby, you have already set `DERBY_HOME`. Set your classpath to include the Derby jar files. Then use a `java` command to invoke the `sysinfo` class directly.

      java org.apache.derby.tools.sysinfo

- sysinfo example
  When you run the sysinfo command using the derbyrun.jar file, the output looks something like this.
- Using sysinfo to check the classpath
  sysinfo provides an argument (-cp) which can be used to test the classpath.