Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

werid problem, please help, thanks very much!!!

From: raybristol <raygrrr(at)gmail.com>
Date: Tue Oct 02 2007 - 12:07:15 EDT

I am getting a error when I try to get a connection, the werid thing is I can called the getConnection method with no problem from some project but got below erros in other projects:

java.lang.NoSuchMethodError:
org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z

	at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)

my code is:
private static final String driver = "com.mysql.jdbc.Driver"; private static final String dbName="Umbrella"; private static final String connectionURL = "jdbc:mysql://localhost:3306/" + dbName;             

Connection conn = null;

conn = DriverManager.getConnection(connectionURL, "root", "password");

I don't know why there is anything to do with derby! i am using mysql(I was using derby before but I changed it) and from the connection string there is no way the code is calling derby and the code in fact was fine with some project (I am using eclipse)
--

View this message in context: http://www.nabble.com/werid-problem%2C-please-help%2C-thanks-very-much%21%21%21-tf4555694.html#a13001638 Sent from the MySQL - Java mailing list archive at Nabble.com.

--

MySQL Java Mailing List
For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/java?unsub=lists@pantek.com Received on Tue Oct 2 12:07:48 2007

Do you need help?X

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:14:17 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library