Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Importing Java packages with eclipse

    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:

    For who wants to know which libraries: they are the libraries for the Belgium electronic ID, which can be found here: Belgium eID SDK

    Thanks!

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    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
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    import package javax.swing.*;
    Correct me if I'm wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •