No, you don't need the import--the import is only necessary for compile-time
type-safety, whereas Class.forName() executes at runtime. (Note that if you
misspell the argument to forName(), or the CLASSPATH in the JVM that's
executing doesn't have the com.sybase.jdbc package in it, you'll get a
ClassNotFoundException.)

Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
 "I don't even speak for myself; my wife won't let me." --Me

-----Original Message-----
From: Paul Szynol <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 27, 1999 8:58 AM
Subject: Re: Sybase JDBC Drivers


>Thanks, Andy and Dmitry, for getting back to me.
>
>I have just one more question -- in order to use
>Class.forName("com.sybase.jdbc.SybDriver"), I have to import the
>com.sybase.jdbc.SybDriver class at the beginning of the application,
>correct?
>
>(None of the sample code I worked with that implemented Sybase showed the
>import statement, which confused me).
>
>Is that jConnect that I need to download from Sybase, or is it something
>else?  If it isn't jConnect, where do I get it?
>
>Thanks again for your kind help.
>
>Best,
>Paul
>
>___________________________________________________________________________
>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