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.
- Install Java using a package handling utility (APT, YUM, etc.).
- Initialize the environment variables globally (
/etc/environment). - Initialize the environment variables in the root's
.bashrc.