How to fix failure in Freemind initialization

If you get an error like:
[warning] /usr/bin/freemind: No java runtime was found
[error] /usr/bin/freemind: Unable to find an appropriate java runtime. See java_wrappers(7) for help
during Freemind initilization, set the Java home:
JAVA_HOME=$JRE_PATH
export JAVA_HOME

To make this setting static, add
JAVA_HOME=$JRE_PATH
to
/etc/environment