db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John English <john.fore...@gmail.com>
Subject Re: DriverManager.getConnection error with JDK 7
Date Sat, 23 Feb 2013 13:49:37 GMT
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:

> DriverManager.getConnection throw a exeception always.

Difficult to say unless you provide details of the error message for the 
exception. Does the connectionURL work if you connect with IJ? Is the dbname a 
relative or absolute directory name? If it's relative, are you in the correct 
current directory when you try and connect?

HTH,
-- 
John English

Mime
View raw message