Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

ClassPath problem: cannot find org.apache.derby.jdbc in derby.jar

 
Marcus Reese
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This is my first time to post to any java forum.

The following is in my WindowsXP ClassPath:
;C:\"Program Files"\Java\jdk1.6.0_01\db\lib\derby.jar;C:\"Program Files"\Java\jdk1.6.0_01
Using a similar entry in ClassPath I have had no trouble using the normal jdk class library.
But when I try:

I get a ClassNotFoundException for org.apache.derby.jdbc.EmbeddedDriver.
And when I try:

I get "package org.apache.derby.jdbc does not exist"

I opened NetBeans, and it was able to load the driver and create a database no problem, so why can't I do it using a text editor and JDK? (I don't know how to use NetBeans really, and so I looked in vain for a code sample in Main. The database loading code must be in the APP Schema, wherever that is?)

Thanks for your consideration!
 
Moiez Gohar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is your development/working directory? ie, in which directory are your source files placed. make sure that the working directory has the derby.jar file in the folder: [working_directory]/org/apache/...
if it is not, then place it in this directory
 
Marcus Reese
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That worked--Thank you so much!
 
Moiez Gohar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are welcome!
 
Are you okay? You look a little big. Maybe this tiny ad will help:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic