ASA Programming Guide
Using Java in the Database
Java-enabling a database
By default, Adaptive Server Anywhere does not install Adaptive Server Anywhere runtime Java classes each time you create a database. The installation of this separately-licensable component is optional, and controlled by the method you use to create the database.
The CREATE DATABASE SQL statement has an option called JAVA. To Java-enable a database, you can set the option to ON. To disable Java, set the option to OFF. This option is set to OFF by default.
For example, the following statement creates a Java-enabled database file named temp.db:
CREATE DATABASE 'c:\\sybase\\asa9\\temp' JAVA ON
The following statement creates a database file named temp2.db, which does not support Java.
CREATE DATABASE 'c:\\sybase\\asa9\\temp2'
You can create databases using the dbinit.exe database initialization utility. This utility has options that control whether or not to install the runtime Java classes in the newly-created database. By default, the classes are not installed.
The same options are available when creating databases using Sybase Central.