Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » Java in the database » Special features of Java classes in the database


How to call the main method

You typically start Java applications (outside the database) by running the Java VM on a class that has a main method.

For example, the Invoice class in the file %SQLANYSAMP16%\SQLAnywhere\JavaInvoice\ has a main method. When you execute the class from the command line using a command such as the following, it is the main method that executes.

java Invoice
 Calling the main method of a class from SQL
 See also