Driver Package and Environment Dependency
DDS allows you to perform operations using Java. In this way, you can connect to an instance through an SSL connection or an unencrypted connection. The SSL connection encrypts data and is more secure.
SSL is disabled by default for a new DDS instance. To enable SSL, see Enabling SSL.
Installing the Driver
- Click the JAR driver download address to download mongo-java-driver-3.12.9.jar, which provides APIs for accessing DDS DB instances.
- To install the driver, see the official guide.
Environment
JDK1.8 must be configured for the client. JDK is cross-platform and supports Windows and Linux.
The following uses Windows as an example to describe how to configure JDK:
- In the DOS window, run java -version to check the JDK version. Ensure that the JDK version is 1.8. If JDK is not installed, download the installation package and install it.
- Right-click the This PC icon on the desktop of the Windows OS and choose Properties from the shortcut menu.
- In the System window, click Advanced system settings in the navigation tree on the left.
- In the dialog box that is displayed, click Environment Variables.
- In the displayed window, set the variables listed in the following table.
Variable
Operation
Value
JAVA_HOME
- If this parameter exists, click Edit.
- If this parameter does not exist, click New.
Java installation directory.
For example, C:\Program Files\Java\jdk1.8.0_131.
Path
Click Edit.
CLASSPATH
Click New.
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
- Click OK and close the windows in sequence.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot