批次新增CLASSPATH
批次新增CLASSPATH
依照給定目錄將下面的lib加到CLASSPATH
範例:
依照給定目錄將下面的lib加到CLASSPATH
範例:
#!/bin/bash
LIB_HOME=/opt/javafx-sdk1.2/lib
LIB[0]=desktop
LIB[1]=mobile
LIB[2]=shared
for LIBRARY in ${LIB[*]}
do
for name in `ls $LIB_HOME/$LIBRARY`
do
export CLASSPATH=$LIB_HOME/$LIBRARY/$name:$CLASSPATH
done
done
echo $CLASSPATH