executing java from unix shell script

Hi, I am trying to execute java program from a unix shell script and the program has a command line parameter. I have tried in ways like

/opt/java1.4/bin/java CollExtractLoadProcess /home/inbox/archive/file_name

/opt/java1.4/bin/java CollExtractLoadProcess "/home/inbox/archive/file_name"

/opt/java1.4/bin/java CollExtractLoadProcess '/home/inbox/archive/file_name'

/opt/java1.4/bin/java CollExtractLoadProcess file_name

No matter how I execute it gives me the following error

Exception in thread "main" java.lang.ClassFormatError: CollExtractLoadProcess (C

ode segment has wrong length)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12

3)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Could someone please let me know what is the correct way of doing this?

Thanks.

[1548 byte] By [kbandaa] at [2007-10-3 4:33:25]
# 1
Sounds like you either have a corrupt class file or you're using an older version of the JVM to try to execute classe that were compiled for a newer version.
jverda at 2007-7-14 22:37:01 > top of Java-index,Java Essentials,Java Programming...
# 2
Yes, could be you FTP'd the .class file in ASCII instead of Binary mode ?
abillconsla at 2007-7-14 22:37:01 > top of Java-index,Java Essentials,Java Programming...