【发布时间】:2010-11-07 14:30:42
【问题描述】:
我有一个 Eclipse 的 .classpath 文件,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="lib" path="/libraries/jee/servlet-api.jar"/>
<classpathentry kind="lib" path="/libraries/junit/junit-4.6.jar"/>
<classpathentry kind="lib" path="/libraries/log4j/log4j-1.2.15.jar"/>
</classpath>
我想将整个 jar 目录添加到类路径中 - 我喜欢 eclipse(或者更准确地说,我们使用 .classpath 格式的基于 ant 的构建过程)知道驻留在单个目录中的多个 jar,而无需直接指定它们。我该怎么做?
【问题讨论】:
标签: java eclipse jar classpath