- Documentation
Torch Object Storage
TOS Vectors
SDK reference
Java-Vectors
Install TOS Vectors Java SDK
Java-Vectors
Install TOS Vectors Java SDK
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.
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.
Install via Gradle
Configure the following in the build.gradle file by adding dependencies in dependencies.
Import via JAR package
Import the ve-tos-java-sdk JAR package into the IntelliJ IDEA project.
- Copy the downloaded ve-tos-java-sdk-2.9.8.jar file into your project.
- In IntelliJ IDEA, select your project, right-click and choose File > Project Structure > Modules > Dependencies > + > JARs or directories.
- 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.
- Copy the downloaded ve-tos-java-sdk-2.9.8.jar file into your project.
- In Eclipse, select your project, right-click and choose Properties > Java Build Path > Add JARs.
- Select the ve-tos-java-sdk-2.9.8.jar file and import it into Libraries.
Last updated: 2026.02.06 18:01:48