Driver class not found?

I'm using Java SE 6 and NetBeans 5.5, and I'm trying to connect to a JavaDB database that I created through NetBeans, but when I try to load the driver using Class.forName("org.apache.derby.jdbc.EmbeddedDriver")

I get a ClassNotFoundException. The same thing happens when I try to use ClientDriver instead of EmbeddedDriver. And, when I right-click that driver in the Runtime pane and select Connect Using. . . I get the same error ("suitable driver not found"). Maybe I'm missing something extremely obvious, but I can't for the life of me figure out what it is. I've scoured all of the tutorials I can find on Sun's website, gone through various books on Java and databases, uninstalled and reinstalled all of my Java-related software, even tried different syntax, but I still can't get it to work.

Any thoughts? I'm sorry in advance if this is a dumb question or it's already been answered, but I've been wracking my brain on this for a couple days now and it's starting to drive me a little crazy. . .

[1061 byte] By [bellcla] at [2007-11-27 11:16:25]
# 1

The class needs to be in your RUNTIME classpath so that the class loader can find it. I emphasized runtime because this important point seems to miss some people.

At any rate, your drivers are not in your runtimer classpath. Hence the error message.

cotton.ma at 2007-7-29 14:19:02 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

See the following link

http://java.sun.com/products/jdk/faq.html#E5

There are links there to explain how to set your classpath.

cotton.ma at 2007-7-29 14:19:02 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...