From: Ben S. <sub...@be...> - 2013-12-02 08:05:48
|
>>>>>> 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. > 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. I have solved the problem: there were two instances of PlainSocketFactory in my classpath! (I diagnosed the problem as follows, namely, removed the instance of PlainSocketFactory.class from httpclient-4.3.1.jar and recompiled, knowing that if I got the same compilation error, then there must have been another instances of PlainSocketFactory lurking around somewhere.) Thanks for your help. Best regards, Ben |