December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to create a Java class that utilizes some external Java libraries. To do so, you must load those external libraries into the database.
Use the loadjava utility to store the external libraries into the database. In this example, a Java utility class containing a method that uses the JavaMail API to send e-mail will be loaded into the database. The method relies on some external Java libraries to use the JavaMail API. The following loadjava commands demonstrate the loading of three essential JAR files for using the JavaMail API:
loadjava –u <username> mail.jar
loadjava –u <username> standard.jar
loadjava –u <username> activation.jar
Next, load the Java source for the
Read now
Unlock full access