Help Center/
Object Storage Service/
Java SDK Developer Guide (Ally Region)/
Before You Start (SDK for Java)
Updated on 2026-01-16 GMT+08:00
Before You Start (SDK for Java)
This section describes version compatibility and important notes about Object Storage Service (OBS) SDK for Java.
Compatibility
- Recommended JDK versions: JDK 8 or later
- Third-party dependencies: This version is not completely compatible with earlier versions (2.1.x). OkHttp 3 should be used to replace HttpClient4.x.
- Namespace: This version is compatible with earlier versions (2.1.x). All external APIs are contained in the com.obs.services, com.obs.services.model, and com.obs.services.exception packages.
- API functions: This version is compatible with earlier versions (2.1.x).
- The earlier 2.X versions are no longer maintained. You are advised to upgrade them to the latest version as soon as possible.
Important Notes
- You can learn about how to call an API through the OBS SDK for Java by referring to Using an OBS Client.
- After an API is called using an instance of ObsClient, if no exception is thrown, the return value is valid. If an exception is thrown, the operation fails. For details about errors, see SDK Exceptions (SDK for Java).
- After an API is successfully called using an instance of ObsClient, a class or sub-class instance of HeaderResponse that contains response headers will be returned.
- Some features are available only in some regions. If an API call returns the 405 HTTP status code, check whether the region supports this feature.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot