Derby plugin class sometimes not found exception

View: New views
3 Messages — Rating Filter:   Alert me  

Derby plugin class sometimes not found exception

by Greg Martin-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Class.forName("org.apache.derby.jdbc.EmbeddedDriver") when called from within an Eclipse view class throws class not found however from a main in the same class it succeeds and I can get a connection o the db. I can connect to the db from ij fine as well. Derby version is 10.5.3 and eclipse is 3.5.1. Any help would be appreciated.

 

Regards,

Greg Martin

http://www.gregmartin.name/

 

 


Re: Derby plugin class sometimes not found exception

by Dag H. Wanvik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greg Martin <gregmar@...> writes:

> Class.forName("org.apache.derby.jdbc.EmbeddedDriver") when called from
> within an Eclipse view class throws class not found however from a main in
> the same class it succeeds and I can get a connection o the db. I can
> connect to the db from ij fine as well. Derby version is 10.5.3 and eclipse
> is 3.5.1. Any help would be appreciated.

I don't use Eclipse, but this sounds like a classpath problem. Maybe
some Eclipse experts can help you, I don't believe this is a Derby
issue.

Dag

RE: Derby plugin class sometimes not found exception

by Greg Martin-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using the derby plugin which sets the classpath up for the project. It
may have something to do with the way the views are instantiated though but
if that is the case I would expect this to be a common problem with users of
the plugin. I will try the eclipse lists.  

 - Greg
http://www.gregmartin.name/
 

-----Original Message-----
From: Dag.Wanvik@... [mailto:Dag.Wanvik@...]
Sent: Saturday, October 10, 2009 9:16 PM
To: Derby Discussion
Subject: Re: Derby plugin class sometimes not found exception

Greg Martin <gregmar@...> writes:

> Class.forName("org.apache.derby.jdbc.EmbeddedDriver") when called from
> within an Eclipse view class throws class not found however from a main in
> the same class it succeeds and I can get a connection o the db. I can
> connect to the db from ij fine as well. Derby version is 10.5.3 and
eclipse
> is 3.5.1. Any help would be appreciated.

I don't use Eclipse, but this sounds like a classpath problem. Maybe
some Eclipse experts can help you, I don't believe this is a Derby
issue.

Dag