You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Java-Vectors
Install TOS Vectors Java SDK
Copy page
Download PDF
Install TOS Vectors Java SDK
Before running TOS Vectors Java SDK, you need to install the SDK first. This article provides the runtime environment requirements and several installation methods for the SDK.​
Environment​
  • The SDK requires JDK version 1.8 or above to run.​
  • All example codes in this article run properly on IntelliJ IDEA, using Maven 3.6.3 as the package management tool.​
Notes​
The Java SDK depends on OkHttp. We recommend using OkHttp version 4.x. The minimum required OkHttp version is 3.9.1. Versions below this may cause the SDK to fail compiling properly.​
Installation package​
Installation methods​
The current TOS Vectors Java SDK supports installation via Maven, Gradle, or directly through a Jar package. Using SDK version 2.9.8 as an example, configure as follows.​
tip​
It is recommended to use the latest SDK version; please refer to Git for the most updated version.​
Install via Maven​
Configure as follows in the pom.xml file.​
​
<dependency>​
<groupId>com.volcengine</groupId>​
<artifactId>ve-tos-java-sdk</artifactId>​
<version>2.9.8</version>​
</dependency>​
​
Install via Gradle​
Configure the following in the build.gradle file by adding dependencies in dependencies.​
​
implementation 'com.volcengine:ve-tos-java-sdk:2.9.8'​
​
Import via JAR package​
tip​
Before importing via JAR package, download the latest JAR package file.​
Import the ve-tos-java-sdk JAR package into the IntelliJ IDEA project.​
  1. Copy the downloaded ve-tos-java-sdk-2.9.8.jar file into your project.​
  1. In IntelliJ IDEA, select your project, right-click and choose File > Project Structure > Modules > Dependencies > + > JARs or directories.​
  1. Select the ve-tos-java-sdk-2.9.8.jar file to import into External Libraries.​
Import the ve-tos-java-sdk JAR package into the Eclipse project.​
  1. Copy the downloaded ve-tos-java-sdk-2.9.8.jar file into your project.​
  1. In Eclipse, select your project, right-click and choose Properties > Java Build Path > Add JARs.​
  1. Select the ve-tos-java-sdk-2.9.8.jar file and import it into Libraries.​
​
Last updated: 2026.02.06 18:01:48