: DriverManager.getConnection error with JDK 7
I caught SQLException and he said that : No suitable driver found
for jdbc:derby:MoneyBack1;create=true;user=miltone;password=password
So your classloader can't find the derby driver. Have you checked that
derby.jar is on your classpath?
The sysinfo
:\Program Files (x86)\Java\jdk1.7.0_10\db\lib
-Message d'origine-
De : Bryan Pendleton [mailto:bpendleton.de...@gmail.com]
Envoyé : samedi 23 février 2013 18:06
À : Derby Discussion
Objet : Re: DriverManager.getConnection error with JDK 7
I caught SQLException and he said
And sysinfo -cp :
C:\Program Files (x86)\Java\jdk1.7.0_10\db\libjava -jar derbyrun.jar
sysinfo -cp
TROUVE DANS LE CHEMIN DE CLASSES :
BibliothÞque de moteur intÚgrÚ Derby (derby.jar)
file:/C:/Program Files (x86)/Java/jdk1.7.0_10/db/lib/derby.jar
BibliothÞque de moteur intÚgrÚ Derby
On 2/24/2013 6:19 AM, john miltone wrote:
I don't find where is my problem with this information sysinfo tool derby :
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Program Files (x86)\Java\jdk1.7.0_10\db\libjava -jar derbyrun.jar
-Message d'origine-
De : Katherine Marsden [mailto:kmarsdende...@sbcglobal.net]
Envoyé : dimanche 24 février 2013 15:30
À : Derby Discussion
Objet : Re: DriverManager.getConnection error with JDK 7
On 2/24/2013 6:19 AM, john miltone wrote:
I don't find where is my problem
Hi All,
I am starting into Derby and I develop on Intellij IDEA with JDK 7.
I just want to create and start database. It seems very simple but the first
and unique code row generate a exception.
Can you help me to understand and arrive to start engine Derby database in
my program please ?
On 23/02/2013 13:21, john miltone wrote:
Hi All,
I am starting into Derby and I develop on Intellij IDEA with JDK 7.
I just want to create and start database. It seems very simple but the first and
unique code row generate a exception.
String createString = CREATE TABLE operation +
On 23/02/2013 13:21, john miltone wrote:
String connectionURL = jdbc:derby: + dbName + ;create=true;user= +
user + ;password= + password ;
Connection connexion = DriverManager.getConnection(connectionURL);
Oops, replied too hastily... didn't notice this:
You might want to read this page and resubmit the question.
http://www.catb.org/esr/faqs/smart-questions.html
In particular, you might want to post the command line used to invoke
Java, and post the text of the error. Also, can you explain the part
about not using class for name?
On 2/23/13
connectionURL4 = jdbc:derby: + dbName;
-Message d'origine-
De : John English [mailto:john.fore...@gmail.com]
Envoyé : samedi 23 février 2013 14:50
À : derby-user@db.apache.org
Objet : Re: DriverManager.getConnection error with JDK 7
On 23/02/2013 13:21, john miltone wrote:
String
On 23/02/2013 17:47, john miltone wrote:
I caught SQLException and he said that : No suitable driver found for
jdbc:derby:MoneyBack1;create=true;user=miltone;password=password
So your classloader can't find the derby driver. Have you checked that derby.jar
is on your classpath?
--
John
I caught SQLException and he said that : No suitable driver found for
jdbc:derby:MoneyBack1;create=true;user=miltone;password=password
So your classloader can't find the derby driver. Have you checked that
derby.jar is on your classpath?
The sysinfo tool is useful for diagnosing classpath
12 matches
Mail list logo