I have had this problem before. It sounds to me that you need to get the
JDBC classes from the
Java application that you are using and place it in the directory containing
your code.
the class containing the JDBC code is classes111.zip you need to find that
in your Java application and copy it like I mentioned above. Best of luck

Tarek.

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Nabil
> Abbas
> Sent: 25 January 2000 13:28
> To: [EMAIL PROTECTED]
> Subject: DB2 JDBC servlet on NT
>
>
> Hi all,
>
> Could anyone help me in this.
> I am not able to connect to DB2 using this code in a servlet. However
> the code works just fine in a java application.
> Any hints ?
>
>
> ---------------------------------------------------------------------
>    try {
>     Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
>     }
>     catch (Exception e) {
>      e.printStackTrace();
>      }
>    }
>    Connection con = null;
>    String url="jdbc:db2:dbname";
>    try
>     {
>      con = DriverManager.getConnection(url, "****","*****");
>      Statement stmt = con.createStatement();
>      .....
> ---------------------------------------------------------------------
>
> Regards,
> Nabil
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to