INSTALL JAVA Statement

Makes Java classes available for use within a database.

Syntax

INSTALL JAVA [ install-mode ] [ JAR jar-name ] 
   FROM source

install-mode:
   { NEW | UPDATE }

source:
   { FILE file-name | URL url-value }

Parameters

Examples

Usage

.Only new connections established after installing the class, or that use the class for the first time after installing the class, use the new definition. Once the Java VM loads a class definition, it stays in memory until the connection closes.

If you have been using a Java class or objects based on a class in the current connection, you need to disconnect and reconnect to use the new class definition.

Standards

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Not supported by Adaptive Server Enterprise.

Permissions

  • Requires the MANAGE ANY EXTERNAL OBJECT system privilege and a newer version of the compiled class file or JAR file available in a file on disk.

  • All installed classes can be referenced in any way by any user.

Related reference
REMOVE Statement