Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with MySQL-Driver

843854Feb 10 2004 — edited Feb 11 2004
Hi,

I try to load the MySQL-Driver by using:

DriverManager.registerDriver(new com.mysql.jdbc.Driver());

resp.:
Class.forName("com.mysql.jdbc.Driver").newInstance();

Both variations cause the Compiler to give me the following:
"<identifier> expected at line..."

I already made sure (several times) that the appropriate driver (mysql-connector-java-3.0.10-stable-bin.jar) is - according to the MySQL-Readme - in the right folder (JAVA-HOME/jre/lib/ext).
I'm running Win2K Professional, all SP installed; Java is Java 2 SDK 1.4.2.

Meanwhile I'm pretty close to turning inside out.... :)
Any sugestions will be highly appreciated.

So long,
Jan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2004
Added on Feb 10 2004
1 comment
60 views