<questionmarc420@msn.com> wrote...
[snipped down to the essentials]
> java.lang.ClassNotFoundException: sun.jdbc.odbc.JbdcOdbcDriver
...
> java.sql.SQLException: No suitable driver
> can somebody please pooint me in the right direction.
> do i need to configure somethign in access? is there
> any thing i have to do in the ODBC configurations?
Probably not. It seems more likely that either:
- you're running it as an applet in old IE
(didn't have that bridge class, but a MS one)
- you're running on an obscure, stripped down
version of the JRE (where that driver is missing)
- something's wrong with your JRE installation, so the
JVM doesn't find the Java classes
- or you're executing the app in a way that overrides the
default classpaths.
There could possibly be other possible causes to your error as well, but
these are some that comes up on the top of my head.
In order to help you better, you could provide more info on what version of
JRE, JVM, OS, etc, you're running it on.
// Bjorn A
morc - 24 May 2006 21:52 GMT
thanks for the reply.
i am using windows xp, mcirsoft access 2003, J2SE Development kit 5.0,
J2SE Runtime Enviroment 5.0
your help is apprefciated
-morc
Bjorn Abelli - 24 May 2006 22:59 GMT
"morc" wrote...
> thanks for the reply.
> i am using windows xp, mcirsoft access 2003,
> J2SE Development kit 5.0,
> J2SE Runtime Enviroment 5.0
>
> your help is apprefciated
java.lang.ClassNotFoundException:
sun.jdbc.odbc.JbdcOdbcDriver
Now I saw the error ;-)
You have simply spelled the name wrong.
JbdcOdbcDriver should be JdbcOdbcDriver
// Bjorn A
IchBin - 24 May 2006 23:12 GMT
> "morc" wrote...
>> thanks for the reply.
[quoted text clipped - 16 lines]
>
> Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
Boy.. I would have never picked that up!..
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
morc - 25 May 2006 14:41 GMT
thanks alot. it worked i was gettin frustrated :)
> hi,
> im having toruble connecting to MS Access DB using Java.
> This is the code i used:
[snip]
I do not have access installed. The "sun.jdbc.odbc.JbdcOdbcDriver"
class can not be found. Think you can download from a list here..
http://developers.sun.com/product/jdbc/drivers
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
IchBin - 24 May 2006 22:18 GMT
> http://developers.sun.com/product/jdbc/drivers
I am running XP SP 2 Home.
I get same results with JDK 1.5.6 and Java 1.6
So I would try a third party driver from that last link I mentioned at Sun.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Bjorn Abelli - 24 May 2006 22:38 GMT
> I do not have access installed. The "sun.jdbc.odbc.JbdcOdbcDriver" class
> can not be found. Think you can download from a list here..
That shouldn't be necessary, as sun.jdbc.odbc.JbdcOdbcDriver is shipped with
the default libraries from Sun, in rt.jar.
// Bjorn A