SDK Download and Installation

Downloading OBS SDK for Java

  • Latest version of OBS Java SDK: Download

Compiling the Java Source Code

You can download the source code of SDK for Java and compile the source code to create a JAR package. Before using this method, ensure that the Java and Maven environments are correctly configured and can be used properly.

  1. Download the source code by referring to Downloading OBS SDK for Java and decompress it.

  2. Go to the directory where the source code is decompressed using commands.

  3. Run the following command:

    Linux:

    mvn clean package -Dmaven.test.skip=true -f pom-java.xml
    

    Windows:

    mvn clean package "-Dmaven.test.skip=true" -f pom-java.xml
    
  4. Find the generated JAR package in the target subdirectory of the decompressed directory.

  5. Save the JAR package to the dependency path of the local project.