Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Package Does Not Exist on NetBeans

843841Jan 11 2007
Hi

I have just downloaded commons-dbcp-1.2.1 and have had trouble trying to integrate it into NetBeans so that my code will complie.

I have tried several things to try and make this work firstly I placed the JAR file in to my java instalations lib folder, and then set the classpath environment variable to include this, this however did not work.

I then went into Netbeans and discoved under tools something called Library Manager, I created a new Library called DBCP and added links to the classpath sources and java docs, still it does not work.

Finally I searched around a bit more and tried doing the same using the Java Platform Manager under the Tools menu, still no luck

The error I am getting is as follows and occurs on the import statements
package org.apache.commons.dbcp does not exist
The following is the import statements I am using
import org.apache.commons.dbcp.ConnectionFactory;
import org.apache.commons.dbcp.DriverManagerConnectionFactory;
import org.apache.commons.dbcp.PoolableConnectionFactory;
import org.apache.commons.dbcp.PoolingDataSource;
I am using NetBeans 5.5 with Java jdk1.6.0

Anyone out there can tell me what I'm doing wrong, and how to fix this please?... oh and using . completion works while typing the code... just won't compile.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2007
Added on Jan 11 2007
0 comments
273 views