Java.lang.NoClassDefFoundError

Source: Internet
Author: User

According to eclipse Error: Java.lang.noclassdeffounderror:org/apache/http/client/methods/httpurirequest

Undoubtedly httpurirequest This class did not find, in the Internet search the relevant solutions are as follows:

1, the Missing Class (httpurirequest) where the jar package is not added to build path, can be added;

2. Add build path but do not tick the corresponding jar package in order and export;

3. Set the Libs folder where the jar package is located to source folders;

4, in the Eclipse--window--property--java compiler--building--remove the checked abort build .... Property.

None of the above solutions have been tried, first 1, I'm sure I've added the jar package to the build path

2, the same project order and export did not tick no error, so it will not be the problem here;

3, set as the source folder is more non-line, even if the next start of the line should also be problematic;

4, try useless.

Finally found that my project is the server-side project needs to be released through Jersey, while there are two Lib, according to the error prompts can also be seen that the jersey cannot find the corresponding class, so the jar package location after the problem is resolved.

Java.lang.NoClassDefFoundError

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.