当前位置: 首页 > 工具软件 > Install4j > 使用案例 >

nexus-3.37.3 报INSTALL4J_JAVA_HOME to point to a suitable JVM

吕皓
2023-12-01

报错 Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

如果 配置nexus-3.37.3-02/bin下的nexus=>INSTALL4J_JAVA_HOME_OVERRIDE路径还是报错的话 那么将jdk8中的bin/java 设置下chmod +x 因为本人用的jdk17 所以忽略 这个问题了

本人在这块一点点调试找到的问题

test_jvm() {
  tested_jvm=na
  test_dir=$1
  bin_dir=$test_dir/bin
  java_exc=$bin_dir/java
  
  if [ -z "$test_dir" ] || [ ! -d "$bin_dir" ] || [ ! -f "$java_exc" ] || [ ! -x "$java_exc" ]; then
    return
  fi

 类似资料: