On the webdriver homepage one can read
- Add $WEBDRIVER_HOME/common/build/webdriver-common.jar to the CLASSPATH
- Add $WEBDRIVER_HOME/htmlunit/build/webdriver-htmlunit.jar to the CLASSPATH
- Add all the Jar files under $WEBDRIVER_HOME/htmlunit/lib/runtime to the CLASSPATH
So you have to put all the jar files behind -cp
like that
javac -cp /home/iyo/webdriver/common/build/webdriver-common.jar:/home/iyo/webdriver/common/build/webdriver-htmlunit.jar FirstTest.java
You probably have to add all the jar files from htmlunit/lib/runtime to the classpath as well.
jrudolph
2008-09-16 13:43:03