Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi,

I try to install Knowage 6.1 on linux and I keep getting an error:

Unable to find environment variable JAVA_HOME, please set it and restart installer

Despite it is already set:

echo $JAVA_HOME
/opt/bitnami/java

Has anyone faced the same problem?

Environment Knowege 6.1, Ubuntu 14.04.5 LTS, Java 1.8
in Installer by (240 points)
reopened by

1 Answer

+1 vote
 
Best answer

The user indicated that the issue can be solved by running the cmd with sudo -E.

-E--preserve-env

Indicates to the security policy that the user wishes to preserve their existing environment variables. The security policy may return an error if the user does not have permission to preserve the environment.

For more detail, see https://www.sudo.ws/man/sudo.man.html#E

by (15.2k points)
...