英文:
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 '14.0.1'.
</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 '14.0.1'.
答案1
得分: 0
我切换到JDK1.8,然后开始构建,
英文:
I change to JDK1.8,and it begin to build,
专注分享java语言的经验与见解,让所有开发者获益!
评论