Domanda

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?

È stato utile?

Soluzione

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!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top