Thanks for your prompt reply.  I downloaded the required file and it
worked
Thanks once again.

With regards
Avinash


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:SERVLET-INTEREST@;JAVA.SUN.COM]On Behalf Of
Galbreath, Mark
Sent: Friday, October 11, 2002 5:38 PM
To: [EMAIL PROTECTED]
Subject: Re: regarding JSDK3


I appears that you are missing the javax.sql.* package or do not have it in
your classpath.  Go to:

http://java.sun.com/products/jdbc/download.html#spec

and download the JDBC 2.0 Optional Package and add the class files to your
/jdk/lib/tools.jar or jar the files and stick them in the .../lib directory.

Mark

> -----Original Message-----
> From: Avinash Pedgaonker , SA, NIC [mailto:avp@;DGFTMUM.BOM.NIC.IN]
> Sent: Friday, October 11, 2002 4:12 AM
>
> i am using JRUN4.0 on WIN NT . i have created a datasource as
> 'dgftcon' .
> now i want to use this datasource in my programme to access
> the data from
> database.
> for that i have used following script ( i am using JDk1.3 and jsdk2.1)

user jsdk2.3 ur error will be solved.

> mport javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.PrintWriter;
> import java.io.IOException;
> import java.sql.*;
> import java.util.*;
> import javax.sql.DataSource;
> import javax.naming.InitialContext;
>
> some class code
>
>  public void doGet(HttpServletRequest request,
> HttpServletResponse response)
> throws ServletException, IOException
>   {InitialContext ctx = new InitialContext();
>    DataSource ds = (DataSource) ctx.lookup("db2con");
>    con = ds.getConnection();
>
>
>
> i am getting error at
> import.javax.sql.Datasource
> error is 'can not resolve symbol'
>
> pl. help me to sort out this error.
>
> with regards,
> avinash

___________________________________________________________________________
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