From: Ahmed A. <asa...@ya...> - 2015-04-30 05:49:57
|
Hi Dan, SgmlPage is part of the htmlunit jar, and it is a must to be loaded. You may have duplicate htmlunit jars (of old and new version), you can see the jar location by something like: System.out.println(WebClient.class.getProtectionDomain().getCodeSource().getLocation()); Also, you can download OSGi jar which combines all dependencies from [1] If you still have an issue, please post your project structure, with the line command if you are not using eclipse/maven. Yours,Ahmed [1] https://sourceforge.net/projects/htmlunit/files/htmlunit/2.16/ From: mendels <men...@gm...> To: htm...@li... Sent: Wednesday, April 29, 2015 10:12 PM Subject: [Htmlunit-user] Runtime problem with latest version of Htmlunit I am finally getting around to upgrading my version of Htmlunit (2.8 > 2.16) and am getting an error for a class that I don't even use. This seems to happen with all newer versions, even when I copy 2.9 into my current environment. Am I missing some file? I have all the jars that are included with the package. Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/SgmlPage It also gives an error for com.gargoylesoftware.htmlunit.ElementNotFoundException as well. Any ideas that might help debug this? Dan |