Building Java routine code

Once Java™ routine implementation code is written, it must be compiled and deployed before the routine can be called. The steps that are required to build Java routines are similar to steps for building other external routine. However, there are some differences.

Procedure

You can use one of the following tools to build Java routines:
  • The graphical tool that is provided with IBM® Data Studio
  • The graphical tool that is provided within IBM IBM Data Studio
  • The graphical tool that is provided within IBM Rational® Application Developer
  • The database sample build-scripts
  • The Db2® command window

The sample build scripts and batch files for routines are designed for building sample routines (procedures and user-defined functions) in a particular operating system with the default supported development software.

There is a separate set of sample build scripts and batch files for Java routines that are created with JDBC and SQLJ. It is easier to build Java routines with the graphical tools or the build scripts, which can be modified as required. However, it is often helpful to know how to build routines from the Db2 command window.