how to set classpath in cron

i have written shell script that script has path to java programwhen irun this script in terminal i get the output but when irun in cron it gives me eror.plz send me code to set classpath

#! /bin/bash

javac  Copy.java

/usr/bin/java Copy

plz help me out
how should i write classpath java package taht i am using is
/usr/java/j2re1.6.0_05

this is where it is present

help

Try adding the following line to your script ..

export CLASSPATH=$CLASSPATH:/usr/java/j2re1.6.0_05

rssrik