Class Path and Path problem

I have set my Class Path and Path as follows PATH=$PATH:$HOME/bin:/d02/interface/ap/payment:/d02/interface/ap/payment/saxon.exe:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/bin:.:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/jre/lib:/d02/interface/ap/payment/saxon

I have mentioned the directory where the java is installed in the Path and the rt.jar file in the Class Path but still when I try to run the java command java test it gives me an error Exception in thread main No Class Def Found error. Please help