百度智能云

All Product Document

          Cloud Monitor

          Install the SDK Package

          Runtime environment

          The Java SDK package supports both JDK 1.7 and JDK 1.8.

          Method I: Install with Maven

          Add the bce-java-sdk dependency in your Maven pom.xml file:

          <dependency>
              <groupId>com.baidubce</groupId>
              <artifactId>bce-java-sdk</artifactId>
              <version>{version}</version>
          </dependency>

          Where, {version} is the version number, which can be found on the SDK Download page.

          Method II: Install directly with JAR packages

          Steps are as follows:

          1. Download the compressed toolkit for the latest version of the Java SDK.
          2. After downloading, unzip bce-java-sdk-{version}.zip and replicate it to the project folder.
          3. Right-click within Eclipse and select "Project -> Properties -> Java Build Path -> Add JARs.\
          4. Add the SDK toolkit lib/bce-java-sdk-{version}.jar and third-party dependency toolkits third-party/*.jar.

          Where, {version} is the version number, which can be found on the SDK Download page.

          SDK directory structure

          com.baidubce
           ├── auth                                         //BCE signature classes
           ├── http                                         //BCE HTTP communication classes
           ├── internal                                    // SDK internal classes
           ├── model                                       // BCE common model classes
          ├── services
           │    └─ bcm                                    //BCM service-related classes
           │       ├─ model                           //Internal BCM models, such as Request or Response
           │       ├─ BcmClient.class                     //BCM client entry class
           │       └─ BcmClientConfiguration.class        //Configuration for BCM-specific HttpClient
           ├── util                                         //BCE common utilities
           ├── BceClientConfiguration.class              // Configuration for BCE HttpClient
           ├── BceClientException.class                  // BCE client exception class
           ├── BceServiceException.class                 // Exception class after BCE server interaction
           ├── ErrorCode.class                           // BCE common error codes
           └── Region.class                              // Regions where BCE provides services
          Previous
          Initialization
          Next
          Overview