# Jar file examples

See "System procedures for storing jar files in a database" in the Derby Reference Manual for reference information about the jar file system procedures and complete syntax.

Pay particular attention to the sections on execute privileges for the `sqlj.install_jar` and `sqlj.replace_jar` procedures. Since these procedures can be used to install arbitrary code (possibly from across the network) that runs in the same Java Virtual Machine as the Derby database engine, both authentication and SQL authorization should be enabled, and execute privileges should be granted only to trusted users.

- Installing jar files
  The following examples show how to use the sqlj.install_jar procedure.
- Removing jar files
  The following example shows how to use the sqlj.remove_jar procedure.
- Replacing jar files
  The following example shows how to use the sqlj.replace_jar procedure.

Parent topic: Add the jar file or files to the database