Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page
Help Center/ CodeArts Deploy/ FAQs/ Common FAQs/ JDK Has Been Installed and Environment Variables Have Been Configured, But Application Deployment Fails with the Error Message "please configure JDK environment variables" Displayed

JDK Has Been Installed and Environment Variables Have Been Configured, But Application Deployment Fails with the Error Message "please configure JDK environment variables" Displayed

Updated on 2023-11-28 GMT+08:00

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

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback