Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems with org.apache.derby.jdbc.EmbeddedDriver(I am having problems with the EmbeddedDriver in Ecliplse)
Problems with org.apache.derby.jdbc.EmbeddedDriver [message #721023] Wed, 31 August 2011 17:54 Go to next message
Bion Hall is currently offline Bion HallFriend
Messages: 1
Registered: August 2011
Junior Member
I am trying to use the embeddeddriver for apache.derby. when I exec the code:
String DRIVER = "org.apache.derby.jdbc.EmbeddedDriver";
String URL = "jbdc:derby:C:\\Documents and Settings\\Bion Hall\\MyDB";
String QUERY = "SELECT FULLNAME FROM WEB1.LOGON WHERE USERID = ?";

try{
Class.forName(DRIVER).newInstance();

I get the following errors:
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)

I have changed the CLASSPATH values, I have moved derby.jar to the WEB-INF/LIB folder and everything else I can find on the web. But nothing works. Any help would be greatly appreaciated.

Bion Hall
Re: Problems with org.apache.derby.jdbc.EmbeddedDriver [message #721049 is a reply to message #721023] Wed, 31 August 2011 19:21 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 31-Aug-11 11:54, Bion Hall wrote:
> I am trying to use the embeddeddriver for apache.derby. when I exec the
> code: String DRIVER = "org.apache.derby.jdbc.EmbeddedDriver";
> String URL = "jbdc:derby:C:\\Documents and Settings\\Bion Hall\\MyDB";
> String QUERY = "SELECT FULLNAME FROM WEB1.LOGON WHERE USERID = ?";
>
> try{
> Class.forName(DRIVER).newInstance();
>
> I get the following errors: java.lang.ClassNotFoundException:
> org.apache.derby.jdbc.EmbeddedDriver
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
>
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
>
> I have changed the CLASSPATH values, I have moved derby.jar to the
> WEB-INF/LIB folder and everything else I can find on the web. But
> nothing works. Any help would be greatly appreaciated.
>
> Bion Hall

Dropping the JAR into your project is only the first of three steps. You
allude to the second one, that of adding it to the CLASSPATH via the
Build Path dialog. The third step is, I'm guessing this is a Dynamic Web
Project, adding this to the Deployment Assembly (right-click the
project, choose Properties, then Deployment Assembly.
Previous Topic:modify what is listed in package explorer
Next Topic:Can't activate breakpoint in Eclipse under Windows (Video)
Goto Forum:
  


Current Time: Fri Sep 20 04:35:02 GMT 2024

Powered by FUDForum. Page generated in 0.07711 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top