Question

Creating a DB2 Java stored procedure using IBM Data Studio, I have some libraries that are required in the classpath. I'm running Data Studio in a VM, and deploying remotely to my DB2 server in a Cloud instance.

How do I bundle up the jars with my stored procedure?

Was it helpful?

Solution

When deploying the stored procedure to the server:

Deploy stored procedure with Data Studio: Deploy Options

make sure you click Next instead of Finish to get to the second screen:

Deploy stored procedure with Data Studio: Routine Options

and there, in the Compile options: field append your dependencies using the -classpath command-line option.

Note: the -cp shorthand option will not work!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top