Installer Doesn't Find Java on Linux

Problem

The installer says "No supported 64bit Java found. Supported Java versions are 8 to 12." on Linux.

If you installed Java manually and set up the environment variables ( JAVA_HOME, JRE_HOME, PATH) manually so you can run the java -version command without error, it is possible that you didn't set the variables globally for other users. For example, if you initialize these variables in your .bashrc, these changes are visible only in your bash, not in the bash of other users. The problem is that you started the installer as a superuser ( sudo manta-dataflow-installer), then the context changed and the command was run by root not by you.

Solution

You have to set environment variables for both a superuser and/or root.

You can use one of these possible solutions.

https://medium.com/coding-blocks/getting-to-understand-linux-shell-s-start-up-scripts-and-the-environments-path-variable-fc672107b2d7