如何在 Eclipse 中安装 javax 和 apache 插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/719084/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 17:27:37  来源:igfitidea点击:

how to install javax and apache plugins in eclipse?

eclipseapacheplugins

提问by Giorgio Gelardi

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.

我是 java 新手,并试图在 eclipse 3.4.2 中重建一个需要 javax(类 InternetAddress、Session 和其他类)和 org.apache.xpath.*(我不知道确切原因)的旧包。我正在寻找更新站点,但谷歌报告了数十亿页。感谢有关如何/在何处找到 eclipse 插件而不会生病的解释,谢谢。

采纳答案by zvikico

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.comto 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"
  1. 找到并下载所需的 JAR。您可以使用FindJar.com 之类的服务来搜索这些 JAR。Apache JAR 通常可从 apache.org 获得。
  2. 将 JAR 文件放在项目中名为 lib 的文件夹中。
  3. 在 Eclipse 中刷新项目(F5 或右键单击并“刷新”),带有 JAR 的 lib 文件夹应该出现在您的项目资源管理器中。
  4. 将它们添加到构建路径 - 在 Eclipse 项目资源管理器中,右键单击 JAR 并选择“添加到构建路径”

回答by Pruthvi Kumar

Right click on project ---> Properties ---> Java Build Path ---> Add Library... ---> Server Runtime ---> Apache Tomcat ----> Finish.

右键单击项目 ---> 属性 ---> Java 构建路径 ---> 添加库... ---> 服务器运行时 ---> Apache Tomcat ----> 完成。