Neoview Guide to Stored Procedures in Java (R2.2)
might need to access, either directly or indirectly, other Java classes to operate properly. Those
Java classes might include other application classes. To enable an SPJ method to refer to other
application classes, put the application classes in the same JAR file as the SPJ class. All classes
stored in the same JAR file as the SPJ class are accessible by default to the SPJ method.
After writing the SPJ method:
1. Compile the Java source file into Java bytecode by using the Java programming language
compiler, javac:
javac Payroll.java
2. Put the SPJ class file and all associated class files into a Java archive (JAR) file:
jar cvf Payroll.jar Payroll.class
A manifest file is not needed for the JAR file.
Compiling and Packaging Java Classes 33