azkaban安装gradlew指定Java位置

huangapple 未分类评论47阅读模式
英文:

azkaban install gradlew specify java location

问题

environment: CentOS 8.1 64位,azkaban 3.90.0,java 14.0.1

sudo adduser azkaban
cd /home/azkaban
git clone git@github.com:azkaban/azkaban.git
git checkout tags/3.90.0 -b 3.90.0-branch

当我运行以下命令时

cd /home/azkaban/azkaban
./gradlew clean build

它显示以下信息

无法从 '14.0.1' 确定java版本。



并且在文件 /home/azkaban/azkaban/gradle/wrapper/gradle-wrapper.properties:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

因此我决定使用较低版本的java,我已经将jdk 11放在 /opt/jdk-11

/opt/jdk-11/bin/java --version

openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

因此我运行

./gradlew clean build -Dorg.gradle.java.home=/opt/jdk-11/

它仍然显示

无法从 '14.0.1' 确定java版本。

英文:

environment:CentOS 8.1 64bit,azkaban 3.90.0 ,java 14.0.1 </br>

sudo adduser azkaban
cd /home/azkaban
git clone git@github.com:azkaban/azkaban.git
git checkout tags/3.90.0 -b 3.90.0-branch

when I run

cd /home/azkaban/azkaban
./gradlew clean build 

it says

Could not determine java version from &#39;14.0.1&#39;.

</br>
and in file /home/azkaban/azkaban/gradle/wrapper/gradle-wrapper.properties:</br>
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip </br>

so I decide to use lower java version, I have put jdk 11 in /opt/jdk-11

# /opt/jdk-11/bin/java --version
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

,so I run

./gradlew clean build -Dorg.gradle.java.home=/opt/jdk-11/

it still say

Could not determine java version from &#39;14.0.1&#39;.

答案1

得分: 0

我切换到JDK1.8,然后开始构建,

英文:

I change to JDK1.8,and it begin to build,

huangapple
  • 本文由 发表于 2020年7月23日 19:34:45
  • 转载请务必保留本文链接:https://java.coder-hub.com/63053290.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定