Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » Java in the database » How to install Java classes into a database


Installing a JAR file

Install the JAR file into the database to make it available within the database.


To install a JAR, you must have the MANAGE ANY EXTERNAL OBJECT system privilege.

You must know the path and file name of the JAR file you want to install. A JAR file can have the extension JAR or ZIP. Each JAR file must have a name in the database. Usually, you use the same name as the JAR file, without the extension. For example, if you install a JAR file named, you would generally give it a JAR name of myjar.

Context and remarks

It is useful and common practice to collect sets of related classes together in packages, and to store one or more packages in a JAR file.

  1. Use the Sybase Central SQL Anywhere 16 plug-in to connect to the database.

  2. Open the External Environments folder.

  3. Under this folder, open the Java folder.

  4. Right-click the right pane and click New » JAR File.

  5. Follow the instructions in the wizard.


A JAR file has been installed into the database and is ready for use.

 See also