문제

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?

도움이 되었습니까?

해결책

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!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top