Cannot find class (C3P0 sources.jar)

399 views Asked by At

I want to introduce Connection Pooling to my application and decided to use C3P0. Nevertheless, for some weird reason when I import both JAR files, Netbeans can't find the classes that the documentation tells me I should use.

Here is a setup of my project:

enter image description here

Any insights? Is there a special way to add this jars? I did it the way I added the database driver and other libraries and I didn't get issues with those.

I copied the com.mchange.v2.c3p0.* manually from the documentation page here: http://www.mchange.com/projects/c3p0/#quickstart

1

There are 1 answers

1
Chetan Kinger On BEST ANSWER

Looks like you downloaded the c3p0-0.9.5-sources.jar that contains the .java source files instead of the binary distributable. The compiler only looks for .class files when searching for dependenies of a class and not .java files.

You should download the c3p0 jar that contains the .class files. (This one for example)