🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15396

Re: JDBC Driver

#15396
From: Phillip Lord
Date: Wed, 16 Jun 1999 00:00
36 lines
2590 bytes

>>>>> "MJR" == MJR  <Rao.Mohith@compaq.com> writes:

  MJR> Does anyone know why the following code throws an exception (I
  MJR> got the code straight off the java.sun.com tutorial on JDBC)?

  MJR> try { Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ); } catch(
  MJR> Exception e ) { System.err.println( "Failed to load JDBC/ODBC
  MJR> driver." ); return; }



	There are a whole pot of reasons. 

	First are you using java 1.1 or above. 

	Second are you using Suns implementation of 1.1 or above. The
jdbc-odbc class is not part of the java platform but a free add on
that Sun distribute. 

	Third you are on windows are you not? The obdc link can only
work on a system with an odbc driver which means windows. 

	Fourth have you got ODBC installed. Its not windows standard 
(although its pretty hard not to get in on most windows machines). It
probably shouldnt give a "ClassNotFoundException" if it isnt, but Ive
never tried it withough.

	After those the problems get a little bit more serious
and difficult to work out. But more info is needed. Id suggest that
you forward all the details you have (jdk version, OS). If you want
help dont leave us guessing...


	Phil
Technical Details
Message-ID: <wklndknkhe.fsf@hgmp.mrc.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7k8ch6$j8u$1@mailint03.im.hou.compaq.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d6b,4a2d57c24fdb42a9
X-Google-Attributes: gid111d6b,public
X-Google-Thread: 10bb9b,4a2d57c24fdb42a9
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: 113ae9,1b231ae46583c0cb
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 115d3b,4a2d57c24fdb42a9
X-Google-Attributes: gid115d3b,public
X-Google-Thread: fecd1,4a2d57c24fdb42a9
X-Google-Attributes: gidfecd1,public
X-Google-Thread: f5d71,4a2d57c24fdb42a9
X-Google-Attributes: gidf5d71,public
X-Google-Thread: fa45f,4a2d57c24fdb42a9
X-Google-Attributes: gidfa45f,public
X-Google-Thread: f74b3,4a2d57c24fdb42a9
X-Google-Attributes: gidf74b3,public
From: Phillip Lord <plord@hgmp.mrc.ac.uk>
Subject: Re: JDBC Driver
Date: 1999/06/16
Message-ID: <wklndknkhe.fsf@hgmp.mrc.ac.uk>
X-Deja-AN: 490320663
Sender: phillip2@TOMATIN
References: <7k8ch6$j8u$1@mailint03.im.hou.compaq.com>
X-Complaints-To: news@hgmp.mrc.ac.uk
X-Trace: niobium.hgmp.mrc.ac.uk 929552787 29009 158.94.59.94 (16 Jun 1999 17:06:27 GMT)
Organization: MRC Human Genome Mapping Project Resource Centre
NNTP-Posting-Date: 16 Jun 1999 17:06:27 GMT
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.api,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.misc,comp.lang.java.security,microsoft.public.inetexplorer.ie4.java_applets