Results 1 to 3 of 3
  1. #1
    hahncj55408 is offline Member
    Join Date
    Aug 2011
    Posts
    7
    Rep Power
    0

    Default How to use 3rd party classes in Eclipse

    Hello,
    I've been banging my head against the wall trying to figure out how to do this.
    I've written a GUI program for my software engineering class, I would like to use the JFreeChart program within it. I have downloaded the software, but cannot figure out how or where to save it so I can access it from my eclipse project (With the exception of manually copying and pasting all of the classes into the package I am using).
    I'm sure the process involves saving the files somewhere and using an import command.

    I have the same question for just about every general class I have written. If I have a class that is a useful tool that I'd like to use in future programs, how do I save it in a general area that I can re-use it for all my future projects?

    If you have suggested reading material regarding how the professionals organize their eclipse workspace, that'd be great too.

    Thanks in advance for your help.

    Chris

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default Re: How to use 3rd party classes in Eclipse

    This is Java forum not an Eclipse helpdesk. You would have better luck asking in an Eclipse forum. But you should go into the properties of your project and there should be an option to add a library.

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: How to use 3rd party classes in Eclipse

    Open the Project Explorer (if it's not already open) by selecting Window > Show View > Project Explorer. Right-click your project and select Properties. Select Java Build Path on the left, and then select the Libraries tab on the right. Click the Add External JARs button. Select the jar you want to add to the project.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Replies: 0
    Last Post: 06-30-2011, 04:46 PM
  2. Birthday Party Code
    By tonyfingures in forum New To Java
    Replies: 10
    Last Post: 09-16-2010, 04:24 AM
  3. Third party packages
    By logicbug in forum New To Java
    Replies: 0
    Last Post: 03-23-2009, 04:05 PM
  4. Need to hook up my jsp code to third party vendor
    By priya123 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-28-2008, 11:24 PM
  5. Replies: 0
    Last Post: 12-04-2007, 12:11 PM

Tags for this Thread

Posting Permissions

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