What Should I Do If JDK Has Been Installed and Environment Variables Have Been Configured, But Application Deployment Fails with the Error Message "please configure JDK environment variables" Displayed?
Symptoms
JDK has been installed and environment variables have been configured. But application deployment fails with the error message please configure JDK environment variables is displayed.
Cause Analysis
Environment variables are not configured in the $HOME/.bashrc and $HOME/.bash_profile files.
Solution
Add the following code segment to the end of the $HOME/.bashrc and $HOME/.bash_profile files:
export JAVA_HOME=/usr/local/java/jdk1.8.0_144 export JRE_HOME=/usr/local/java/jdk1.8.0_144/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH
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