Page 1 of 1

JAVA / DB2 Compile problem

PostPosted: Thu Apr 12, 2018 6:43 pm
by hdready95
Hello,

i try to complie TestJDBC.java source for testing Java Z/os V1.13 - DB2 z/OS V10 connectivity
This source is provide by IBM during DB2 V10 installation.

Here the result :

£ cd /usr/lpp/db2/jdbc/samples

£ javac TestJDBC.java

TestJDBC.java:113: error: package com.ibm.db2.jcc does not exist
com.ibm.db2.jcc.DB2Version.getVersion() );
^
TestJDBC.java:304: error: package com.ibm.db2.jcc does not exist
if ( sqle instanceof com.ibm.db2.jcc.DB2Diagnosable ) é
^
TestJDBC.java:307: error: package com.ibm.db2.jcc does not exist
com.ibm.db2.jcc.DB2Sqlca sqlca =
^
TestJDBC.java:308: error: package com.ibm.db2.jcc does not exist
((com.ibm.db2.jcc.DB2Diagnosable)sqle).getSqlca();
^
4 errors
£
£ echo $CLASSPATH
/usr/lpp/java/J8.0_64/lib:/usr/lpp/db2/jdbc/classes:.
£

db2jcc.jar is on /usr/lpp/db2/jdbc/classes ,
Someone could help me ? ;)

Thank you.

Re: JAVA / DB2 Compile problem

PostPosted: Fri Apr 13, 2018 1:16 am
by NicC
Go and see your support to see if the package has bee installed and, if it has, where.

How should we know?