Just place the jconn2.jar file in the lib directory of your webapp.
-d
On Tuesday 08 January 2002 12:59 pm, you wrote:
> Hi all,
> I have some problem loading the driver. I think i have put the driver files
> in a wrong place. When i run the code which looks like this:
>
> private String myDriver ="com.sybase.jdbc2.jdbc.SybDriver";
> ...
> ...
> ...
> ...
>
> try{
> Class.forName(myDriver).newInstance();
> }
> catch(Exception e){
> throw new InstantiationException("Unable to load
> myDriver:"+e.toString()); }
>
> I am getting this error below:
>
> Exception java.lang.InstantiationException: Unable to load
> myDriver:java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
> I am using tomcat 3.3 here...
>
> Can some one suggest me where i have to include the driver files to make it
> work... And the environment variable CLASSPATH
> =C:\jakarta-tomcat-3.3\lib\common\servlet.jar;C:\jakarta-tomcat-3.3\webapps
>\examples\WEB-INF\classes;C:\Program Files\Sybase\SQL Anywhere
> 7\java\jdbcdrv.zip;c:\Program Files\Sybase\jConnect\classes\jconn2.jar
>
> Thanks
> Praveen
--
Darrell Esau
Software Engineer, Sun Microsystems
NetAdmin Development
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>