core-plans
core-plans copied to clipboard
[corretto8] java fails with 'No such file or directory'
Although corretto8, corretto, and corretto11 build, their executables are broken. Something like the following for corretto8 is observed:
[5][default:/src/corretto8:100]# /hab/pkgs/core/corretto8/8.265.01.1/20200818151532/bin/java -version bash: /hab/pkgs/core/corretto8/8.265.01.1/20200818151532/bin/java: No such file or directory [6][default:/src/corretto8:127]#
Note that the live versions of corretto8 and corretto11 work:
[5][default:/src:0]# hab pkg install core/corretto8
» Installing core/corretto8
☁ Determining latest version of core/corretto8 in the 'stable' channel
☛ Verifying core/corretto8/8.202.08.2/20200405000401
...
...
✓ Installed core/corretto8/8.202.08.2/20200405000401
★ Install of core/corretto8/8.202.08.2/20200405000401 complete with 1 new packages installed.
[6][default:/src:0]# hab pkg exec core/corretto8/8.202.08.2/20200405000401 -- java -version
openjdk version "1.8.0_202"
OpenJDK Runtime Environment Corretto-8.202.08.2 (build 1.8.0_202-b08)
OpenJDK 64-Bit Server VM Corretto-8.202.08.2 (build 25.202-b08, mixed mode)
[7][default:/src:0]#
[3][default:/src:1]# hab pkg install core/corretto11
» Installing core/corretto11
☁ Determining latest version of core/corretto11 in the 'stable' channel
↓ Downloading core/corretto11/11.0.2.9.3/20200405194018
...
...
✓ Installed core/corretto11/11.0.2.9.3/20200405194018
★ Install of core/corretto11/11.0.2.9.3/20200405194018 complete with 1 new packages installed.
[4][default:/src:0]# hab pkg exec core/corretto11/11.0.2.9.3/20200405194018 java -version
openjdk version "11.0.2" 2019-01-15 LTS
OpenJDK Runtime Environment Corretto-11.0.2.9.3 (build 11.0.2+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.2.9.3 (build 11.0.2+9-LTS, mixed mode)
[5][default:/src:0]#
Whereas the live version of corretto does not work:
[1][default:/src:0]# hab pkg install core/corretto
» Installing core/corretto
☁ Determining latest version of core/corretto in the 'stable' channel
☛ Verifying core/corretto/11.0.8.10.1/20200715192651
...
...
[2][default:/src:0]# hab pkg exec core/corretto/11.0.8.10.1/20200715192651 java -version
✗✗✗
✗✗✗ No such file or directory (os error 2)
✗✗✗
[3][default:/src:1]#