setup/profile.d/env.sh

4 lines
164 B
Bash
Raw Normal View History

2011-04-26 13:22:53 +02:00
[ -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