HTTPClient Example - Exception in thread “main” java.lang.NoSuchFieldError: INSTANCE

后端 未结 8 818
孤城傲影
孤城傲影 2020-11-29 10:22

I am using HttpClient components from Apache for the following simple program and I see the below exception:

Exception in thread \"main\" java.lang.NoSuchFieldErr         


        
8条回答
  •  伪装坚强ぢ
    2020-11-29 10:45

    Caused by: java.lang.NoSuchFieldError: INSTANCE

    one of the solution of java.lang.NoSuchFieldError: INSTANCE : This happens if we have two diff version of same class in our classpath…. […], So we first find that class(one version of class) , click that class, select "build path", then we click "remove from build path" . by 333ccc333

提交回复
热议问题