Java is an object-oriented language, so its directives (source code) appear in the form of classes. To execute Java in a database, you can write Java directives outside the database and compile them into compiled classes (byte codes) outside of the database, which are binaries that contain Java directives.
These compiled classes are then installed into the database. After installation, these classes can be executed as stored procedures in the database server. For example, the following statement creates a Java stored procedure:
CREATE PROCEDURE insertfix()
EXTERNAL NAME 'JDBCExample.InsertFixed ()V'
LANGUAGE JAVA;
Adaptive Server Anywhere is a run-time environment for Java classes, not a Java development environment. To write and compile Java, you need a Java development environment, such as the Sun Microsystems Java Development Kit.