error in running shell script in cron

#!/bin/bash

CLASSPATH=.
#CLASSPATH=${CLASSPATH}:${INSTALL_PATH}home/squidlog/CopyFile.java
CLASSPATH=${CLASSPATH}:${INSTALL_PATH}usr/java/latest/lib/*.jar

javac CopyFile.java

echo "CLASSPATH=$CLASSPATH"

#home/wbiadmin/JRE1.4.2/j2re1.4.2_15/bin/java CopyFile
/usr/bin/java CopyFile

i tried setting classpath still i have problem

this: *.jar

is not a valid entry in the CLASSPATH - CLASSPATH should just a colon delimited set of string - all of which are directories.

plz send me the code for how to write classpath in linu

What jim said; you need to omit the "*.jar" part. Also to be on the safe side, add export CLASSPATH