Appendix E. Installing software
This appendix covers
- Installing HtmlUnit
- Configuring Cactus with HtmlUnit
- Installing Selenium
- Installing RhinoUnit
- Installing JsUnit
Download HtmlUnit from http://htmlunit.sourceforge.net/ and unzip it to your local drive. In our examples, we have unzipped it to C:\Java\htmlunit-2.7.
Add all JAR files to the classpath except for the three XML libraries: XML-APIs, Xalan, and Xerces. Starting with version 1.4.2, Java ships with an XML parser and transformer (Apache Xalan). Because HtmlUnit ships with XML-APIs, Xalan, and Xerces, the version of these libraries must override the default Java versions through the Java-endorsed mechanism.[1], [2]
1 For Java 5, see http://java.sun.com/j2se/1.5.0/docs/guide/standards/index.html.
2 For Java 6, see http://java.sun.com/javase/6/docs/technotes/guides/standards/.
Move all XML libraries to a subdirectory of HTmlUnit-2.7/lib called endorsed. For example, the lib directory should contain the following files:
The directory lib/endorsed should contain these files: