Java classes must be installed into a database before they can be used. You can install classes from Sybase Central or Interactive SQL.
To install the class to the SQL Anywhere sample database (Sybase Central)
Start Sybase Central and connect to the sample database.
Open the External Environments folder.
Under this folder, open the Java folder.
From the File menu, choose New » Java Class.
The Create Java Class Wizard appears.
Use the Browse button to locate Invoice.class.
Click Finish to close the wizard.
To install the class to the SQL Anywhere sample database (Interactive SQL)
Start Interactive SQL and connect to the sample database.
In the SQL Statements pane of Interactive SQL, type the following statement:
INSTALL JAVA NEW FROM FILE 'path\\Invoice.class'; |
Here path is the location of your compiled class file.
Press F5 to execute the statement.
The class is now installed into the sample database.
For more information about installing classes, and for information about updating an installed class, see Installing Java classes into a database.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |