INSTALL JAVA Statement

Makes Java classes available for use within a database.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

INSTALL JAVAinstall-mode ] [ JAR jar-name ] 
   FROM source

install-mode - (back to Syntax)NEW | UPDATE }

source - (back to Syntax)
   { FILE file-name | URL url-value }

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

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

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Not supported by Adaptive Server.

Permissions

(back to top)

  • 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