This section assumes you have already enabled Java in Adaptive Server. For information, see Chapter 2, “Preparing for and Maintaining Java in the Database.”
installjava copies a JAR file into Adaptive Server and makes the Java classes in that JAR file available for use in the current database. The syntax is:
installjava -f file_name [-new | -update ] ...
Where:
file_name is the name of the JAR file you are installing in the server.
new informs the server this is a new file.
update informs the server you are updating an existing JAR file.
For more information about installjava, see the Utility Guide.
To add support for XML in Adaptive Server, you must install the xml.zip and xerces.jar files. These files are located in the directories $SYBASE/ASE-12_5/lib/xml.zip and $SYBASE/ASE-12_5/lib/xerces.jar
For example, to install xml.zip, enter:
installjava -Usa -P -Sserver_name -f $SYBASE/ASE-12_5/lib/xml.zip
To install xerces.jar, enter:
installjava -Usa -P -Sserver_name -f $SYBASE/ASE-12_5/lib/xerces.jar
To install xerces.jar in a database, you must increase the size of tempdb by 10MB.