trying to "connect"
2 Message(s) by 2 Author(s) originally posted in mysql java
| From: Doug |
Date: Thursday, March 09, 2006
|
Hello
I can not believe it at the whole thimg. Trying to establish a connection. Clearly I am doing something wwrong.
here it is
I've a
jar file I am trying to execute. It contains :
Class-Path: /home/dkr/lib/jdom.jar
/home/dkr/lib/mysql-connector-JAVA-3.0.17-ga-bin.jar
Which finds the jdom.jar but return :
class not found JAVA.lang.ClassNotFoundException:
org/gjt/mm/mysql/Driver.class
When I run:
Class.forName(Parameters.getDbmDriver ());
Any body out there have any idea how I ****** this u?
Thanks for your time.
dkr
| From: Bill Karwin |
Date: Thursday, March 09, 2006
|
wrote in
message
I have a jar file I am trying to execute. It contains :
Class-Path: /home/dkr/lib/jdom.jar
/home/dkr/lib/mysql-connector-JAVA-3.0.17-ga-bin.jar
Which finds the jdom.jar but return :
class not found JAVA.lang.ClassNotFoundException:
org/gjt/mm/mysql/Driver.class
I'd guess that the jar isn't found at the
location listed in that
Class-Path entry. You need to
download it and put it in the location
named
in that Class-Path. You can also put it anywhere else, but you need to
specify the location somehow to the classpath
environment of your JAVA app.
You can get
version 3.0.17 of MySQL's
JDBC driver here:
http://dev.mysql.com/downloads/connector/j/3.0.html
Note that there's a 3.1.12 version available too:
http://dev.mysql.com/downloads/connector/j/3.1.html
FWIW, as of version 3.0.0 of the MySQL JDBC connector, the Driver class name
is com/mysql/jdbc/Driver.class. The old name
(org/gjt/mm/mysql/Driver.class) is supposed to continue to work, though.
Regards,
Bill K.
Next Message: DataTrunctation error when BLOB/CLOB greater than 64K
Blogs related to trying to "connect"
Unable to connect to any of the specified MySQL host from .net ...
Hi, i'm
trying to connect to
mysql server through vb.ner framework 2.0. it keep on saying "Unable to
connect to any of the specified
MySQL host". i'm using xp,
mysql server version is 4 Any idea ?? my code : ConnStr = "Persist Security
...
[C/C++] Re: how can I connect c++ with a database?
What platform are you using? What problems have you encountered? What API are you
trying to use?
Solving: Can't connect to MySQL server on 'localhost' (10061)
I was
trying to get mysqldump working and kept getting this error: mysqldump: Got error: 2003: Can't
connect to
MySQL server on 'localhost' (10061) when
trying to connect Thanks to some Forum posts I saw that "
mysql" seems to have a
...
[Newbie] Re: Cannot connect to mysql
What is the text of the query you are
trying to execute?
[Newbie] Re: Cannot connect to mysql
I'm
trying to connect to
mysql from my sites admincp. I am using linux, and I fear I may have something incorrectly noted in my config file? I'm sorry, I don't even know the right questions to ask here?
[Install] Problems with DBD::MySQL Install
Background: I'm
trying to install Bugzilla on my webserver which required the
... The installation fails on attempts to
connect to the
MySQL database with
... although
mysql is installed on my box, all my databases are presently running
...