Help Center > > Developer Guide> Product Development> Developing an Application> Reference> Preparing the Java Development Environment> Importing Code Example

Importing Code Example

Updated at: Jun 26, 2019 GMT+08:00
  1. Decompress the API calling code example in Java (click here to obtain).
  2. After the decompression, copy the Open source components and src folders by pressing Ctrl+C.

    Figure 1 Copying the folders

  3. Open the project created in the Eclipse, select the project name, and paste the copied folders to the project directory.

    Figure 2 Pasting the folders

    After the paste is complete, files in the src directory are abnormal.

    Figure 3 Abnormal files in the src directory

  4. Right-click the project name and choose Properties > Java Build Path > Libraries > Add JARs. In the dialog box displayed, select all .jar files in the Open source components directory and click OK.

    Figure 4 Importing .jar files

    After the .jar files are imported, files in the src directory become normal.

    Figure 5 Normal files in the src directory

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel