setup/profile.d/env.sh
2011-04-26 13:22:53 +02:00

4 lines
164 B
Bash

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