jre.sh 470 B

12345678910111213141516171819202122232425
  1. # Begin /etc/profile.d/jre.sh
  2. # Set JAVA_HOME directory
  3. JAVA_HOME=/usr/lib/jre
  4. # Adjust PATH
  5. pathappend $JAVA_HOME/bin
  6. AUTO_CLASSPATH_DIR=/usr/lib/java/lib
  7. pathprepend . CLASSPATH
  8. for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
  9. pathappend $dir CLASSPATH
  10. done
  11. for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
  12. pathappend $jar CLASSPATH
  13. done
  14. export JAVA_HOME
  15. unset AUTO_CLASSPATH_DIR dir jar
  16. # End /etc/profile.d/jre.sh