Java classes must be installed into a database before they can be used. You can install classes from Sybase Central or Interactive SQL.
Start Sybase Central and connect to the sample database.
In the left pane, expand the External Environments folder.
Click Java.
Choose File » New » Java Class.
Click Browse and browse to the location of Invoice.class.
Click Finish.
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.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |