Results 1 to 4 of 4
- 10-05-2010, 09:21 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
how can downloaded package be imported in java
Hi,
I'm new to java. I need BasicDataSource class in my application.
When I try to import this, it gave me an error that packege does not exist.
I downloaded whole org.apache.commons package , but how can I
import it in program? Where should I copy this package to import it in program?
I'm using Net Beans IDE.
Thanks in advance,
Amer
- 10-05-2010, 09:38 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Have you told the IDE about the location of the jar file?
In NetBeans if you right click the icon in the "Project" pane and select "Properties" you get a dialog box. Select "Libraries" on the left hand side and use one of the buttons on the right as appropriate. (add project, add library, add jar etc)
- 10-06-2010, 01:11 PM #3
It's important that you understand what's going on "under the hood" without the IDE. See this: Setting the class path
Many people would recommend that until you understand the little stuff like this, you shouldn't be using an IDE at all.
- 10-08-2010, 10:16 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
show the comment in the imported class
By javastuden in forum New To JavaReplies: 5Last Post: 08-31-2010, 10:37 AM -
Downloaded images aren't viewable
By pietertje in forum New To JavaReplies: 12Last Post: 07-05-2010, 02:56 PM -
The declared package does not match the expected package
By oneforall in forum EclipseReplies: 7Last Post: 11-09-2009, 07:51 AM -
Is the imported package foo beeing used in the programm
By cthulhufhtagn in forum New To JavaReplies: 3Last Post: 11-01-2009, 04:27 PM -
Implementing a downloaded JAR file?
By johntveg in forum New To JavaReplies: 2Last Post: 06-27-2009, 05:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks