将 JAR 添加到 Eclipse Java 库 [英] Adding a JAR to an Eclipse Java library

查看:27
本文介绍了将 JAR 添加到 Eclipse Java 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 JAR 文件添加到 Eclipse 中已经存在的 Java 库中?请注意,这不是用户库.

How do you add a JAR file to an already existing Java library in Eclipse? Note that this is not a user library.

也就是说,如果您查看 Java 项目的 Java Build Path 并单击 Libraries 选项卡,您将看到该项目使用的库列表.如果展开给定的库,您将看到该库中包含的 JAR 文件列表.我想向这些库之一添加一个额外的 JAR 文件.

That is, if you look at the Java Build Path for a Java project and click on the Libraries tab, you will see the list of libraries used by the project. If you expand a given library, you will see a list of JAR files included in that library. I want to add an additional JAR file to one of these libraries.

我使用的是 Eclipse 3.4.0 版.

I am using Version 3.4.0 of Eclipse.

推荐答案

在 Eclipse Ganymede (3.4.0) 中:

In Eclipse Ganymede (3.4.0):

  1. 选择库并点击编辑"(窗口左侧)
  2. 点击用户库"
  3. 再次选择库并单击添加 JAR"

这篇关于将 JAR 添加到 Eclipse Java 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆