db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Army <a...@golux.com>
Subject Re: trouble getting connection to Derby
Date Wed, 24 Nov 2004 17:13:20 GMT
Hi Bruce,

Bruce Snyder wrote:
> - Start up the ij tool and run the following commands only to receive an 
> error:
> 
> ij> DRIVER 'com.ibm.db2.jcc.DB2Driver';
> 
> ij> CONNECT 'jdbc:derby:net//127.0.0.1:1527/foo';
> ERROR 08001: No suitable driver

Is this exactly what you're typing into ij?  If so, I think the problem is that
you are missing a colon in the connection url, after the word "net":

 > ij> CONNECT 'jdbc:derby:net//127.0.0.1:1527/foo';	// Yours
 > ij> CONNECT 'jdbc:derby:net://127.0.0.1:1527/foo';	// Correct.

I tried doing these two statements ("driver" and "connect") in ij without the
colon, and the error that I get is, indeed, "No suitable driver".  However,
once I put the colon in, everything worked...

Hope that helps, but feel free to post again if not...
Army

Mime
View raw message