Environment Variables Are Not Configured
Symptoms
The error message please configure JDK environment variables is displayed.
Cause Analysis
- JDK is not installed.
- Environment variables are not configured or are incorrectly configured.
- When openjdk-1.8.0 is selected for JDK Version in the action Install JDK, JDK environment variables are manually configured and the path is set incorrectly.
Solution
- If JDK is not installed, install it through the action Install JDK.
- Configure the environment variables correctly.
The current startup/stop mode is no_login. If the Linux OS is used, you need to manually install JDK and add the JDK environment variables to the following files:
- Ubuntu: ~/.bashrc and ~/.profile
- Centos: ~/.bashrc and ~/.bash_profile
The following is a configuration example of the environment variables:
- export JAVA_HOME=/usr/local/jdk /jdk1.8.0_151
- export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
- export PATH=$JAVA_HOME/bin:$PATH
- If the Linux OS is in use and JDK of the version openjdk-1.8.0 is installed using the action Install JDK, you do not need to manually configure JDK. However, you must delete the JDK environment variables from the following files:
- Ubuntu: ~/.bashrc and ~/.profile
- Centos: ~/.bashrc and ~/.bash_profile
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.