openjdk.kur-kos 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. if [ ! -f /etc/ssl/certs/java/cacerts ]; then
  2. update-ca-trust
  3. fi
  4. cat > /etc/profile.d/openjdk.sh << "EOF"
  5. # Begin /etc/profile.d/openjdk.sh
  6. # Set JAVA_HOME directory
  7. JAVA_HOME=/usr/lib/jvm/java-8-openjdk
  8. # Adjust PATH
  9. pathappend $JAVA_HOME/bin
  10. # Add to MANPATH
  11. pathappend $JAVA_HOME/man MANPATH
  12. # Auto Java CLASSPATH: Copy jar files to, or create symlinks in, the
  13. # /usr/share/java directory. Note that having gcj jars with OpenJDK 8
  14. # may lead to errors.
  15. AUTO_CLASSPATH_DIR=/usr/share/java
  16. pathprepend . CLASSPATH
  17. for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
  18. pathappend $dir CLASSPATH
  19. done
  20. for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
  21. pathappend $jar CLASSPATH
  22. done
  23. export JAVA_HOME
  24. unset AUTO_CLASSPATH_DIR dir jar
  25. # End /etc/profile.d/openjdk.sh
  26. EOF