diff --git a/talimatname/genel/j/jre/jre.kos-kur b/talimatname/genel/j/jre/jre.kos-kur index e5eb0aa03..30892cb4f 100644 --- a/talimatname/genel/j/jre/jre.kos-kur +++ b/talimatname/genel/j/jre/jre.kos-kur @@ -1,3 +1,5 @@ mps sil icedtea-web install -d /usr/lib/mozilla/plugins +[ -f /sources/milis.git/talimatname/genel/j/jre/jre.sh ] && \ +cp -f /sources/milis.git/talimatname/genel/j/jre/jre.sh /etc/profile.d/ diff --git a/talimatname/genel/j/jre/jre.sh b/talimatname/genel/j/jre/jre.sh new file mode 100644 index 000000000..7506f0536 --- /dev/null +++ b/talimatname/genel/j/jre/jre.sh @@ -0,0 +1,24 @@ +# Begin /etc/profile.d/jre.sh + +# Set JAVA_HOME directory +JAVA_HOME=/usr/lib/jre + +# Adjust PATH +pathappend $JAVA_HOME/bin + +AUTO_CLASSPATH_DIR=/usr/lib/java/lib + +pathprepend . CLASSPATH + +for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do + pathappend $dir CLASSPATH +done + +for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do + pathappend $jar CLASSPATH +done + +export JAVA_HOME +unset AUTO_CLASSPATH_DIR dir jar + +# End /etc/profile.d/jre.sh