Help Center> Content Moderation> SDK Reference> Using the SDK (Java)> Installing Eclipse and Importing SDK Projects

Installing Eclipse and Importing SDK Projects

The following uses Eclipse as an example to describe how to import the SDK project. Operations of other IDEs are similar to those of Eclipse.

  1. Download the Eclipse version of the corresponding platform. For example, eclipse-jee-mars-R-win32-x86_64.zip.
  2. Extract and open Eclipse.
  3. Configure the correct JRE path in Windows > Preferences > Java > Installed JREs.
  4. Choose General > Workspace from the navigation tree on the left. In the Text file encoding area, select Other, set the parameter value to UTF-8, click Apply, and click OK.
  5. On the Eclipse menu bar, choose File > Import. In the dialog box that is displayed, choose Maven > Existing Maven Projects, click Next, click Browse, and select the local path where ais-moderation-java-sdk resides.
  6. Click Finish to import the SDK. After the SDK is imported, open the project. Figure 1 shows the project directory.

    Figure 1 Project directory

    When Maven is used, the JAR package in the lib directory of the SDK package is the local JAR package on which the project depends. Other dependencies can be configured in the pom.xml file and obtained from the central repository or Huawei open-source image site.