部署 CODEARTS DEPLOY-部署应用失败,JDK已安装且已配置环境变量,但报错:please configure JDK environment variables,怎样处理?:处理方法

时间:2024-09-12 18:49:23

处理方法

将配置JDK环境变量的代码段添加到$HOME/.bashrc, $HOME/.bash_profile文件末尾,代码段如下:

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
support.huaweicloud.com/deployman_faq/deployman_faq_0120.html