This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and Relational Databases and the fly likes ConnectionPool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic
Author

ConnectionPool

S bitz
Ranch Hand

Joined: Jan 20, 2006
Posts: 80
I've tried to create a connection pool using derby database in NetBeans 5.0 and this is what i get when i run the application.


i've added all the derby jar files in the tomcat/common/lib directory and also the library of the application, but still i get the same result.

Can anyone help me with this?
Thanks,
Bitz
stu derby
Ranch Hand

Joined: Dec 15, 2005
Posts: 333
You need to add the jars to the NetBeans project you're working on; this in turn will add them to the runtime classpath.

If you don't already, you need to understand what a classpath is and that a compile-time and a runtime classpath may be different, and learn that it is set and maintained differently in NetBeans (and many other IDEs) and in stand-alone Java, which in turn is different from a J2EE server environment (JBoss, WebSphere, etc.)
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31551
    
184

Please continue discussion in your other thread, now in IDEs. In the future, please don't cross post the same question.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ConnectionPool