Content Moderation
Content Moderation
- What's New
- Product Bulletin
- Service Overview
- Getting Started
- User Guide
- API Reference
-
SDK Reference
- Introduction to Moderation SDK
- Applying for a Service
- Obtaining Authentication Information
- Preparing the Environment
- Using the SDK (Java)
- Using the Python SDK
- Using the .NET SDK
- Using the Go SDK
-
FAQs
- Service Enabling
-
APIs
- How Do I Use Content Moderation APIs?
- What Should I Do When I Fail to Call a Content Moderation API?
- Can I Directly Upload a Word File for Text Moderation?
- What Are the Constraints on Concurrent API Calls?
- What Can I Do if the Request for Calling an API Times Out?
- How Do I Customize a Detection in Text Moderation?
- Can Content Moderation Traverse and Review the Content in an OBS Folder?
- Error Codes
- Monitoring
- Others
- Price Details
- Glossary
- General Reference
On this page
Show all
Help Center/
Content Moderation/
SDK Reference/
Using the SDK (Java)/
Preparing a Java Development Environment
Copied.
Preparing a Java Development Environment
Moderation Java SDK uses Java SE Development Kit 8 (JDK 8) or later. The following uses JDK 8 (Windows x64) running on Windows 7 as an example. If you have downloaded the JDK and configured the environment, skip this section.
- Download the JDK file.
- After the JDK file is downloaded, install the JDK as prompted. For example, install the JDK to the C:\Program Files\Java\jdk1.8.0_131 directory on the local PC.
- Right-click Computer, choose Properties > Advanced System Settings > Environment Variables, and perform the following operations to configure Java environment variables:
- Create system variable JAVA_HOME whose value is the JDK installation path.
- Add %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin to Path. Separate multiple values with semicolons (;).
- Create system variable CLASSPATH whose value is %JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar.
- Open the command line interface (CLI) and run java -version. If the information shown in Figure 1 is displayed, the configuration is successful.
Parent topic: Using the SDK (Java)
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