Hello!!
How can I obtain out param of Procedure in DB2 from Java??
My code is:
ConnectDB DB = new ConnectDB();
CON = DB.getConnection();
String sRES = "";
String param = "12345678"
CallableStatement cs = null;
String sSQL = " CALL PROCEDURE('"+param+"',?)";
cs = CON.prepareCall(sSQL);
cs.registerOutParameter(1,Types.CHAR);
cs.execute();
sRES = cs.getString(1);
But I Have the exception:
java.lang.NoClassDefFoundError: com/ibm/db2/jcc/SQLJPackage
at COM.ibm.db2.jdbc.net.DB2Connection.prepareCall(DB2Connection.java:658)
Why??? I need help. Thank you.
How can I obtain out param of Procedure in DB2 from Java??
My code is:
ConnectDB DB = new ConnectDB();
CON = DB.getConnection();
String sRES = "";
String param = "12345678"
CallableStatement cs = null;
String sSQL = " CALL PROCEDURE('"+param+"',?)";
cs = CON.prepareCall(sSQL);
cs.registerOutParameter(1,Types.CHAR);
cs.execute();
sRES = cs.getString(1);
But I Have the exception:
java.lang.NoClassDefFoundError: com/ibm/db2/jcc/SQLJPackage
at COM.ibm.db2.jdbc.net.DB2Connection.prepareCall(DB2Connection.java:658)
Why??? I need help. Thank you.