I'm trying to install OpenJDK on my CLFS x86_64-64 build, and when I try to run java from the 64bit binary package (OpenJDK-18.104.22.168-x86_64-bin.tar.xz in the latest SVN) that BLFS provides, I get:
sudo: unable to execute /opt/OpenJDK-22.214.171.124-bin/bin/java: No such file or directory
At first I thought it was probably a PATH error, but even trying to run the java executable from the host directory gave me the same error. Then I thought perhaps it was a permissions problem, but running it as root gave the exact same error. I then downloaded the JRE bin package from Oracle, and got the same error. So to see if other precompiled binaries failed in the same way, I tried to run the 64-bit dropbox executable, and got the same dreaded error. Googling this got me nowhere. So I really want to know what's going on here. It will be great if somebody could provide some insight on this. Thank you.