bash: /usr/bin/java: cannot execute binary file: Exec format error
Run a simple java command on Ubuntu and hits the below errors: Terminal $ java -version bash: /usr/bin/java: cannot execute binary file: Exec format error P.S Tested with Java 15 and Ubuntu 20 1. Problem – Download the wrong JDK build The error Exec format error means we download the wrong JDK build for a …