• 欢迎光临~

JAVA_HOME has not been configured

开发技术 开发技术 2022-12-28 次浏览

环境

Ubuntu 18.04

报错

  • 配置区块链WeBase时python3 deploy.py startAll 报错
    JAVA_HOME has not been configured

  • 检查JAVA_HOME,发现JAVA_HOME 没有配置
    JAVA_HOME has not been configured

  • 配置JAVA_HOME
    JAVA_HOME has not been configured

 cd /usr/lib/jvm/
 : /usr/lib/jvm# ls
 java-1.8.0-openjdk-amd64  java-8-openjdk-amd64
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin:$PATH
export PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin:$PATH

JAVA_HOME has not been configured

  • 再次部署
    JAVA_HOME has not been configured
程序员灯塔
转载请注明原文链接:JAVA_HOME has not been configured
喜欢 (0)