English 中文(简体)
如何导入罐罐 [重复]
原标题:How to import jar of jars [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Classpath including JAR within a JAR

我想知道是否可以导入一罐罐罐子。 我正在尝试装入 < a href=" http://www.openehr.org/wiki/display/ projects/ Java+Project+Download" rel= “nofoln noreferr'\code> openehr_ref_impl_java-1.0.1.jar , 这是一个罐子罐子, 但类的例子没有被引用 。 首先我把罐子复制到 lib 文件夹( 位于我的项目文件夹中) - & gt; 右键点击 - gt; 构建路径 - gt; 添加到构建路径 。

I tried unzipping the .jar file which works - the classes are referenced, but I figured since there is also a jar of jars for the javadoc (openehr_ref_impl_java-1.0.1_javadocs.jar), there might be a simpler solution.

最佳回答

您链接的页面还提供 Jars 组件。 这意味着所有组件中的一个 Jar 只是为了方便分发/ 下载。

所以答案是: - 先把罐子抽出来, 每一个都添加到编译/运行的类路径上, 就像你对任何普通罐子一样。

问题回答

我下载了它。 项目名称( 右键点击) - & gt; 构建路径 - & gt; 配置构建路径 - & gt; 库 - & gt; 添加外部 Jars - & gt; 您的 Jar 。

这对我管用





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签