PDA

View Full Version : Importing Java packages with eclipse


TMWTP
07-19-2008, 02:02 PM
Hi,
As a beginner in the Java world, I only know the basics of Java programming. For a new project, I need to import an archive file (.jar), which consists of several classes. I imported the jar file already, but I don't know exactly how to use it in the program itself. I know how to do it with standard libraries (like swing: import javax.swing.*;) but how do I do it with imported packages?

A screen shot:http://i143.photobucket.com/albums/r130/Carrein/ScreenShot002-3.png

For who wants to know which libraries: they are the libraries for the Belgium electronic ID, which can be found here: Belgium eID SDK (http://eid.belgium.be/nl/binaries/eID_SDK_2%2E5%2E9_tcm147-20935.zip)

Thanks!

shyam
07-20-2008, 12:13 PM
its not any different from the standard libraries. you just import the classes that you want. with eclipse once you add it to the build path it can automatically organize imports for you to the specific classes you are using in your code

Jayy
08-01-2008, 08:02 AM
import package javax.swing.*;
Correct me if I'm wrong.