Questions & Answers

Error happen when run install-build-tools.sh

0 votes
asked Jun 18 by maxiao (840 points)

1) git clone https://github.com/pndaproject/pnda.git
2) cd pnda
3) git checkout release/3.4
4) cd build
5)install-build-tools.sh 
then error bellow output:

root@pnda-ubuntu:/home/pnda# ./build/install-build-tools.sh 
Checking system config
Dependency check: Java JDK 1.8.0_74
WARN: Unable to find JDK 1.8.0_74, going to download it and set JAVA_HOME relative to /home/pnda
--2017-06-18 11:50:51--  http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 65.216.231.145, 65.216.231.152
Connecting to download.oracle.com (download.oracle.com)|65.216.231.145|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz [following]
--2017-06-18 11:50:51--  https://edelivery.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.68.105.17, 2001:559:14:1a1::2d3e, 2001:559:14:183::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.68.105.17|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz?AuthParam=1497786772_8c1b2d99acde72fbcab8c7275e323aed [following]
--2017-06-18 11:50:52--  http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz?AuthParam=1497786772_8c1b2d99acde72fbcab8c7275e323aed
Connecting to download.oracle.com (download.oracle.com)|65.216.231.145|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-18 11:50:53 ERROR 404: Not Found.

tar (child): jdk-8u74-linux-x64.tar.gz: Cannot open: No such file or directory

1 Answer

0 votes
answered Jun 19 by trsmith2 (3,160 points)
It appears that Oracle have moved the JDK package. It's still available on their site, though, so you can manually download it. Once you've done this, set your JAVA_HOME and PATH to use that JDK. The script checks for a valid Java installation, so it won't then try to download it again.

Assuming you have downloaded and unpacked the JDK in the current working directory -

export JAVA_HOME=${PWD}/jdk1.8.0_74  
export PATH=$JAVA_HOME/bin:${PATH}
...