Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install javax and apache plugins in eclipse?

I'm new to java and trying to rebuild in eclipse 3.4.2 an old package that require javax (classes InternetAddress, Session and others) and org.apache.xpath.* (I don't know exactly why). I'm looking for update sites but google reports billions of pages. An explaination about how/where to find eclipse plugins without getting sick will be appreciated, thanks.

like image 773
Giorgio Gelardi Avatar asked Apr 07 '26 00:04

Giorgio Gelardi


1 Answers

From what you describe, you don't need a plugin, you just need to add the required libraries to your build path. You won't find those in update sites.

Here's what you need to do:

  1. Locate and download the required JARs. You can use a service like FindJar.com to search for those JARs. Apache JARs are usually available from apache.org.
  2. Put the JARs in a folder called lib in your project.
  3. Refresh the project in Eclipse (F5 or right-click and "Refresh"), the lib folder with the JARs should appear in your project explorer.
  4. Add them to the build path - in the Eclipse project explorer, right-click the JARs and select "Add to build path"
like image 54
zvikico Avatar answered Apr 09 '26 17:04

zvikico