2022-02-18 08:33:07
Applicable to revision JDK 6 or above.
Import JAR package into Eclipse project:
Take revision 1.0.3 as an example, with the following steps:
Download Java SDK Java SDK
Unzip the SDK.
Copy the files in the unzipped folder: jfs-jcloud-sdk-java-.jar and all files in lib folder of the demo project to your project.
Select your project in the Eclipse, right click and select Properties > Java Build Path > Add JARs.
Select all JAR files you copied in step 3.
You can use OSS Java SDK in the Eclipse project through the above steps.
OSS Java SDK provides an example project that you can run on your local device. You can also develop your applications based on the example project.
Example project:jfs-jdcloud-sdk-java-demo.zip
Rich example programs are provided in the example project for the convenience of user reference or direct use
The example includes the following contents:
Example file | Example contents |
---|---|
JcloudOSSDemo | Demonstrate quick start example for cloud storage use |
InitOSSSample | Demonstrate the method of OSS initialization |
ObjectSample | Demonstrate the basic object relevant actions, such as upload, download, delete, etc. |
PutObjectSample | Demonstrate the usage of simple file upload |
GetObjectsample | Demonstrate the usage of downloading files |
DeleteObjectSample | Demonstrate the usage of deleting files |
MoveObjectSample | Demonstrate the usage of moving files |
ListObjectSample | Demonstrate the usage of listing files |
PresignedUrlSample | Demonstrate the usage of creating pre-signed URI |
BucketSample | Demonstrate the usage of configuring storage space, including basic actions (create, delete, display all storage space of the account) of the storage space, relevant actions of anti-theft chain, etc. |
MultipartUploadSample | Demonstrate the usage of multipart upload of large files |
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通