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

1 comment
  • Support is required to generate a ticket to review the correct installation of Java Azul because it is required to open applications that request to run Java. This application requires a Java version 8.1.2810 but for security reasons it is no longer possible to have it.

    0

Please sign in to leave a comment.

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