JAVA / DB2 Compile problem



Support for Java SE, EE & ME, JVM, JNI, JDBC, EJB, JFC, JPDA, JAAS,JCE, JAXP, XML and Java API.

JAVA / DB2 Compile problem

Postby hdready95 » Thu Apr 12, 2018 6:43 pm

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.
hdready95
 
Posts: 1
Joined: Thu Apr 12, 2018 6:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JAVA / DB2 Compile problem

Postby NicC » Fri Apr 13, 2018 1:16 am

Go and see your support to see if the package has bee installed and, if it has, where.

How should we know?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to Mainframe Java

 


  • Related topics
    Replies
    Views
    Last post