I have set up a project in Netbeans, created a script, made a new database with javadb. I can connect to it by gui - display the tables contents etc, but when i run an appli
I think the problem you have is that you don't have the Derby driver in the classpath of the project.
You can easily achieve that adding the JavaDB library to your project:
This includes derby.jar, derbyclient.jar and derbynet.jar in your project's classpath.
The derbyclient.jar contains the class org.apache.derby.jdbc.ClientDriver your code is complaining about.