JDK Installation
The MPC SDK uses 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.
Procedure
- Download the JDK file from the official website. JDK 8 is used as an example. Click DOWNLOAD below JDK.
- 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.
- Configure Java environment variables.
- Right-click Computer, choose Properties > Advanced system settings.
- Click the Advanced tab, and then click Environment Variables.
- Set JAVA_HOME, PATH, and CLASSPATH (case-insensitive) in the System variables area. See Table 1.
If the three variables already exist, click Edit. If not, click New.
Table 1 JAVA environment variables Variable
Value
Description
JAVA_HOME
JDK installation path
Example: C:\Program Files (x86)\Java\jdk1.8.0_1311
PATH
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
Add it to the end of the original PATH value.
CLASSPATH
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
There is a dot (.) in front of the value.
- Open the CLI and run java -version. The Java environment variables have been configured if the Java version is displayed.
The following is a successful response example:
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