Updated on 2022-02-24 GMT+08:00

Importing Code Example

  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