2016-06-24 4 views
0

WebClient HtmlUnitDriver을 사용하고 있습니다. 나는WebClient HTML 장치 드라이버가 작동하지 않습니다.

final WebClient webClient = new WebClient(); 
webClient.getPage("https://www.google.co.in"); 

내가 오류가 아래 얻고있다 .. 아래의 코드는, HtmlUnit과-2.10.jar 이클립스 빌드 경로에 파일을 사용하고 있습니다 :

****Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/set/ListOrderedSet** 

는 어떻게 할 수 알려 주시기 바랍니다 해결, 대답은 인정 될 것입니다. 감사합니다.

당신은 당신의 코드에서 ListOrderSet 객체를 사용하는 경우 참조 :

답변

0

귀하의 WebClient은 오류와는 아무 상관이 없습니다. 그런 경우 올바른 패키지를 가져 오십시오. 광산은 다음과 같습니다

import org.apache.commons.collections.set.ListOrderedSet; 

ListOrderSet에 대한 추가 정보를 원하시면이 link를 참조하십시오;

0

이러한 옵션 투어 클라이언트 객체를

WebClient client = new WebClient(); 
try { 
    client.getOptions().setUseInsecureSSL(true); 
    client.getOptions().setThrowExceptionOnFailingStatusCode(false); 
    client.getOptions().setThrowExceptionOnScriptError(false); 

    WebRequest requestSettings = new WebRequest(new URL(REST_URL), methodCall); 

를 설정하고이 2.13

에 예컨대 볼 수 있습니다로 친절을 결코 버전을 업그레이드하려고
관련 문제