From: David T. <da...@de...> - 2013-11-30 16:50:45
|
Curiouser and curiouser! If you step back a second and consider what “final” means, it should be a little clearer. A final class cannot be subclassed. http://en.wikipedia.org/wiki/Final_%28Java%29 This again tells me that somehow your libraries in your class path are set up wrongly. I’m afraid I will have to defer to wiser heads on this one. Are you following the suggestion on the web site? http://htmlunit.sourceforge.net/gettingLatestCode.html “Compiling the code The preferred way to build HtmlUnit is with maven 3. mvn compile This will do an incremental compile of all the code. mvn clean compile This will do a clean compile of all the code." David -- David W. Taylor, Detayls www.detayls.com On Nov 30, 2013, at 3:50 AM, Ben Smyth <sub...@be...> wrote: >>>>> I cannot compile HTMLUnit, since SocksSocketFactory extends final >>>>> PlainSocketFactory. How can I get around this? >>>> You are missing an HTTPClient library jar on your class path or the one >>>> you have is out-of-date. >>>> >>>> Careful, there’s more than one HTTPClient out there. >>> Thanks David, to get it right, can you point me towards the right one. >>> There is an client in my path but maybe the wrong one. >> Chances are you have a typo in your class path if you think you have one >> available. > > That doesn't seem to be the case, since I get the following error message: > > [javac] /nas/home3/b/bsmyth/workspace/src/com/gargoylesoftware/htmlunit/SocksSocketFactory.java:33: > cannot inherit from final > org.apache.http.conn.scheme.PlainSocketFactory > [javac] class SocksSocketFactory extends PlainSocketFactory { > > To clarify, the htmlunit source is from htmlunit-2.13-src.zip and > httpclient-4.3.1.jar is extracted from htmlunit-2.13-bin.zip. > > |