Error message "java: No such file or directory"

If you see the following error message when running /usr/lib/jvm/zulu-8/bin/java -version:

java: No such file or directory

or

java: cannot execute binary file

it is usually either caused by a missing Azul Zulu JDK/JRE installation or by running a 32 bit executable on a pure 64 bit system or vice-versa. Check for the existence of the java executable first, as a wrong path to the JDK/JRE can also be a cause for this:

$ file /usr/lib/jvm/zulu-8/bin/java
java: ELF 32-bit LSB executable

If the file exists and shows a 32 bit executable and your operating system is 64 bit or vice versa, the solution is to install the Azul Zulu package of the same "bitness" (32 or 64) as your operating system.

 

Add Comment

Comments

0 comments

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful