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

    Default How to use 3rd party classes in Eclipse

    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.


  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Rep Power

    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
    Tucson, AZ
    Rep Power

    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, 03:46 PM
  2. Birthday Party Code
    By tonyfingures in forum New To Java
    Replies: 10
    Last Post: 09-16-2010, 03:24 AM
  3. Third party packages
    By logicbug in forum New To Java
    Replies: 0
    Last Post: 03-23-2009, 03: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, 10:24 PM
  5. Replies: 0
    Last Post: 12-04-2007, 11:11 AM

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