I'm trying to get started with HttpUnit. I made an Eclipse project with a simple example, but there seems to be a neverending stream of unresolved dependencies and imports it can't find. So I'm starting over:
I just want to get this tutorial to work: http://www.httpunit.org/doc/tutorial/
My jars folder contains:
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
My .classpath file says:
<?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>
Why can't the following imports be resolved?
import com.meterware.httpunit.*;
import com.meterware.servletunit.*;
import junit.framework.*;
Thanks
In the Package Explorer or Project Explorer view select all JARs, right-click and choose Build Path > Add to Build Path.
If you did that, the
.classpath
file should have an entry like<classpathentry kind="lib" path="... .jar"/>
for each.jar
file.