wrong parameter passing!

Hi all
I have a script which will take input as filename and passes it to a java program. It is as follows
--------------------------------
FILENAME=$1
echo $FILENAME
${JAVA_HOME}/bin/java -cp DateProvider $FILENAME
-------------------------------------------------
when I execute the same the parameter is wrongly passed to the java program as -------------------------

A09MI18.2061220 <-- this is the filename i supplied
Exception in thread "main" java.lang.NoClassDefFoundError: R09MI18/2061220
--------------------------------
I dont know how the "." is changing to "/".
Can anybody help me to solve the same?

Thanks in Advance

java -cp expects a classpath to follow -cp, in your case you don't have one, so your program is trying to execute the file as a java program.

got it!
Thnx