bash: /opt/jdk-15.0.2/bin/java: cannot execute binary file: Exec format error
-
Full Error: bash: /opt/jdk-15.0.2/bin/java: cannot execute binary file: Exec format error
What was being done at the time?
$ java --version bash: /opt/jdk-15.0.2/bin/java: cannot execute binary file: Exec format error
Resolution. File is from a different architecture then the architecture it is being executed on. On this occasion the file needed to be in x86 architecture compiled, the Incorrect software installed.
$ file /opt/jdk-15.0.2/bin/java /opt/jdk-15.0.2/bin/java: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, not stripped
© Lightnetics 2024