db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Re: Derby Driver
Date Fri, 18 Nov 2005 00:55:47 GMT
Sean McCully wrote:

> Apologies should I continue the discussion here or move it?
>  
> Yes when I execute the derby jar it works, and actually I was able to 
> get the driver to load by merely replacing the String name with a 
> String constant but on subsequents loads it failed. Also this may be 
> due to the computer I was using which experienced a crashed 
> afterwards. I will check tommorrow and move this discussion to the 
> derby-user mailing list.
>  
> Thanks!!
>
> */....  SNIP ...
> /*
>
>
>         On 11/17/05, *Sean McCully* < sean_mccully@yahoo.com
>         <mailto:sean_mccully@yahoo.com>> wrote:
>
>             Hello I probably have a rather simple question, when I
>             execute the following line
>              
>             Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
>
>              
>             it throws the following exception
>              
>             java.lang.ClassNotFoundException :
>             org.apache.derby.jdbc.EmbeddedDriver
>              
>             derby.jar is included in my Classpath, what is the problem?
>
Hi Sean -
Are you using and IDE or executing in a server environment?  In these 
cases you need to be sure that derby.jar is in the classpath of the 
Server / IDE.  Hope it's something as easy as this.


Mime
View raw message