setup/profile.d/env.sh

10 lines
253 B
Bash
Raw Normal View History

[ -x /usr/lib/jvm/jre/bin/java ] && {
JAVA_HOME=/usr/lib/jvm/jre
PATH=$PATH:/usr/lib/jvm/jre/bin
}
[ -x /usr/lib/jvm/jdk/bin/javac ] && {
JAVA_HOME=/usr/lib/jvm/jdk
PATH=$PATH:/usr/lib/jvm/jdk/bin
}
[ "$JAVA_HOME" ] && export JAVA_HOME PATH