【发布时间】:2018-10-30 21:27:31
【问题描述】:
我正在尝试开始使用 HttpUnit。我用一个简单的例子制作了一个 Eclipse 项目,但似乎有一个永无止境的未解决依赖项和它找不到的导入流。所以我要重新开始:
我只想让本教程正常工作:http://www.httpunit.org/doc/tutorial/
我的 jars 文件夹包含:
activation-1.1.jar
js-1.6R5.jar
jtidy-4aug2000r7-dev.jar
junit-3.8.1.jar
mail-1.4.jar
nekohtml-0.9.5.jar
servlet-api-2.4.jar
xercesImpl-2.6.1.jar
xmlParserAPIs-2.6.1.jar
我的 .classpath 文件说:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="jars"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="output" path="bin"/>
</classpath>
为什么以下导入无法解析?
import com.meterware.httpunit.*;
import com.meterware.servletunit.*;
import junit.framework.*;
谢谢
【问题讨论】:
标签: eclipse import dependencies http-unit