-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

In your jserv.properties file, you need to make sure that the CLASSPATH is
set to point to the classes directory of JConnect.  Here's the code from my
file (Win NT):
wrapper.classpath=D:\Program Files\Sybase\jConnect5\classes

The exception is being caused by the JVM not being able to find the class
that you are trying to instantiate in your code.

kevin
-----Original Message-----
From: Smith, James (BOS) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 29, 1999 10:53 AM
To: 'Java Apache Users'
Subject: RE: Sybase ODBC driver + JDBC Java Servlet


-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

I'm getting an exception thrown from the
Class.forName("com.sybase.jdbc.SybDriver") line below?  Is there something
I'm missing here?  Do I need to explicitly set the version number as noted
in the documentation?

> -----Original Message-----
> From: Kevin Erickson [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 29, 1999 10:11 AM
> To:   'Java Apache Users'
> Subject:      RE: Sybase ODBC driver + JDBC Java Servlet
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> I hope that this helps!
> 
> public class Coach2 extends HttpServlet
> {
>     public void doGet  ( HttpServletRequest  request,
>                          HttpServletResponse response)
>     throws ServletException
>     {
>         Connection        con=null;
> 
>         // Load driver class in
>         try
>         {     
>             Class.forName("com.sybase.jdbc.SybDriver");
>         }
>         catch (Exception e)
>         {
>             System.err.println("Error: Could not load
> com.sybase.jdbc.SybDriver");
>             return;
>         }
> 
>         // Get connection
>         try
>         {
>             con =
> DriverManager.getConnection("jdbc:sybase:Tds:198.153.233.4:2025/PotShotTes
> t"
> ,"USERID", "PASSWORD");
>         }
>         catch (SQLException sqle)
>         {
>             System.err.println("Error: Could not connect: " +
> sqle.getMessage());
>             return;
>         }
> 
> -----Original Message-----
> From: Smith, James (BOS) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 29, 1999 10:05 AM
> To: 'Java Apache Users'
> Subject: RE: Sybase ODBC driver + JDBC Java Servlet
> 
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> Could someone post a snippet of code to show the minimum connection
> parameters that need to be set to establish a connection for JConnect?
> 
> > -----Original Message-----
> > From:       Womick Don [SMTP:[EMAIL PROTECTED]]
> > Sent:       Wednesday, September 29, 1999 9:26 AM
> > To: 'Java Apache Users'
> > Subject:    RE: Sybase ODBC driver + JDBC Java Servlet
> > 
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> > 
> > Pat O'Neil wrote:
> > > The download may be free, but you only get to use it for 30 days.
> > 
> > Sybase started giving away the whole thing in early August.
> > 
> > > I have been having decent luck with freetds's jdbc driver (an open
> > > source analog to jconnect for talking with sybase/ms sql server).
> > > Either is better than using odbc drivers.
> > 
> > Don't know about freetds, but JConnect has been solid for us on NT. I
> have
> > yet to run into a bug using it (which I certainly couldn't say for ODBC
> > and
> > the Bridge).
> > 
> > --Don
> > 
> > 
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to