dot/.zjava

37 lines
855 B
Plaintext

for i in /usr/java/j2sdk1.4.2_03 /usr/local/j2sdk1.4.2 /usr/local/j2sdk1.4.1 /usr/java/j2sdk1.4.0 \
/usr/java/jdk1.3.1_02 /usr/java/jre1.3.1_02 \
/usr/local/jdk1.2.2 /usr/java1.2 /usr/local/jdk1.2 \
/usr/local/jdk117_v3 /usr/local/jdk1.1.6 \
/usr/local/java
do
if [ -d "$i/bin" ]
then
PATH=$(apppath "$i/bin")
export JAVA_HOME=bin
break;
fi
done
ALL_PATH=.:/usr/local/java/classes:$ORACLE_HOME/jdbc/lib/classes111.zip:/usr/java1.2/lib/tools.jar:/usr/local/jswdk-1.0.1/lib/servlet.jar:/usr/local/java/lib/Tidy.jar:/usr/local/roxen/2.1/roxen/server/java/classes/servlet.jar
NEW_PATH=""
for i in ${(s/:/)ALL_PATH}
do
if test -r "$i"
then
case "$NEW_PATH" in
$i:*|*:$i|*:$i:*) ;;
*)
if test -z "$NEW_PATH"
then
NEW_PATH=$i
else
NEW_PATH=$NEW_PATH:$i
fi
esac
fi
done
export CLASSPATH=$NEW_PATH