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

后端 未结 8 816
孤城傲影
孤城傲影 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:55

    I had this problem too, i realized it was when we upgraded to java 1.8, i just downgraded to 1.7 and works as expected. Not sure why the version became an issue.

提交回复
热议问题