Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Import a library to Netbeans

  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    271
    Thanks
    21
    Thanked 7 Times in 7 Posts

    Default Import a library to Netbeans

    Hi guys,


    How can I import a library to Netbeans? I've tried everything I could think of; and didn't find a tutorial to walk me through it. The library I want to import is the ACM library from the Java Task Force.


    Thanks.
    -Mel


  2. #2
    Member
    Join Date
    Jan 2012
    Location
    Hellas
    Posts
    284
    Thanks
    11
    Thanked 59 Times in 57 Posts

    Default Re: Import a library to Netbeans

    Hello Melawe,
    i'm not sure if this is what you want but i'll give it a try since i did something similar with another library recently.
    Say you've created a project named myproject. Now you want to use the ACM package in that project.
    Under myproject there are some sub-directories,
    right click on Libraries directory. Now, a menu appears that offers
    Add Project
    Add Library
    Add jar/folder
    Properties
    Select Add jar/folder. Now, in your ACM file there must be a .jar file. You just have to locate where is this .jar file in the ACM.
    Hope it helps.

  3. #3
    Member
    Join Date
    Mar 2010
    Posts
    271
    Thanks
    21
    Thanked 7 Times in 7 Posts

    Default Re: Import a library to Netbeans

    All the files in the ACM lib are .java files. there are no class or jar files.

    EDIT__________
    Hey I tried compiling them to a .jar file and using it. It worked. Thanks.
    Last edited by Melawe; March 16th, 2012 at 08:00 AM.

Similar Threads

  1. Replies: 1
    Last Post: July 7th, 2011, 12:42 PM
  2. library
    By b109 in forum Java Theory & Questions
    Replies: 2
    Last Post: May 3rd, 2010, 05:32 AM
  3. from where i should import
    By javaking in forum Java SE APIs
    Replies: 0
    Last Post: April 12th, 2010, 07:51 AM
  4. [SOLVED] Do i need to import anything here?
    By straw in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 6th, 2010, 06:42 PM
  5. How to import an .tiff image in JSP?
    By jazz2k8 in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: May 12th, 2008, 05:55 AM