百度智能云

All Product Document

          Elastic IP

          SDK Installation

          Runtime Environment

          Java SDK toolkit can run under jdk1.7 or jdk1.8.

          Method 1: Install with Maven

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

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

          Where, {version} is version number which can be found in SDK Download Page

          Method 2: Install Directly Using JAR Package

          1.Download the latest Java SDK compression tool kit. 2.Unzip the downloaded bce-java-sdk-version.zip and copy it to the project folder. 3.Right-click "Project -> Properties -> Java Build Path -> Add JARs" in Eclipse. 4.Add SDK toolkit lib/bce-java-sdk-version.jar and third-party dependency toolkit third-party/*. Jar. Where, {version} is version number which can be found in SDK Download Page

          SDK's Directory Structure

           com.baidubce
            ├── auth                                         //BCE signature related class 
            ├── http                                         //BCE Http communication related class 
            ├── internal                                     //SDK internal class 
            ├── model                                        //BCE common model class 
            ├── services
            │    └─ eip                                   //EIP service related class 
            │       ├─ model                            //EIP internal model, such as Request or Response 
            │       └─ EipClient.class                    //EIP client entry class 
            │    └─ eipgroup                              //EIPGroup related service class 
            │       ├─ model                              //EIPGroup internal model 
            │       ├─ EipGroupClient.class               //EIPGroup client entry class 
            │       └─ EipGroupClientConfiguration.class //EIPGroup specific HttpClient configuration 
            ├── util                                       //BCE common tool class 
            ├── BceClientConfiguration.class               // HttpClient configuration for BCE 
            ├── BceClientException.class                   //BCE BCE client exception class 
            ├── BceServiceException.class                  // Exception class after interaction with BCE client 
            ├── ErrorCode.class                            //BCE general error code 
            └── Region.class                               //Region where BCE provides services 

          Uninstall SDK

          It is expected that you may simply delete the pom dependency or source code when uninstalling the SDK.

          Previous
          Overview
          Next
          Initialization