Jar Package Import

Source: Internet
Author: User

An error appears at the beginning of the program with the type XXXXX cannot be resolved. It is indirectly referenced from required. class files

Cause: The class control that is being used calls another class within the package modbus4j, and the class calls the other classes, and the relationship can be a lot of layers. In the process of this invocation, the absence of a package containing a class can cause the error. Or. jar Package import path error, or JRE version selection error.

Workaround:

Check the JRE version

Because of Java updates, different versions of the JRE may exist in the same directory, choosing the latest version.

Importing a missing package

1. Place the appropriate package under the C:\Program Files\java\jre8\lib\ext folder in the Java installation directory

2. Open Eclipse Project Properties Java Build Path (Libraries)

3. Click the button for the add external jar

4. Locate the package you just placed under the C:\Program Files\java\jre8\lib\ext folder and select

5. Select OK, libraries This column will appear this. jar, then expand this item, click Native Library location

6. Find the project directory you need to import this package, click OK to complete the import of the external package.

Jar Package Import

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.