Created
November 3, 2016 11:44
-
-
Save danilkuznetsov/c7c53a5a21a861f70f4d4a5c90a00979 to your computer and use it in GitHub Desktop.
set JAVA_HOME and JRE_HOME depending on alternatives settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:/jre/bin/java::") | |
JRE_HOME=$JAVA_HOME/jre | |
export JAVA_HOME JRE_HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Howto install in Fedora 23
add this file to /etc/profile.d/