The .class file compiled in Windows does not work in Unix
Joined: Dec 31, 2009
I am facing a weird problem. I can run a .java file named ReconcileCashPoint_10.java (with a main() function in it) on my workspace on my local pc which runs on Windows. The IDE I am using is RAD 7.
But when I send the corresponding .class file to people to get it run on an Unix machine, it throws me this exception:
I am amazed by the fact the the same class file works on my Windows machine but it doesn't work in Unix. Java is known for being Platform Independent language for its bytecodes to work on any platform, then why such an exception?
Just for your information, when I try decompile (through jad) the above .class file (i.e ReconcileCashPoint_10.class) on my local machine, the generated .jad file shows a weird signature for the statement: CPIMessageManager.getRowcount(nl/somebank/cpi/bean/CPIMessageDTO);
The actual statement in the .java file is CPIMessageManager.getRowcount(CPIMessageDTO.class);
Is this issue related to OS-JVM incompatibility? I am not able to figure out what the problem is.
Does anyone have any idea about it? Everybody is waiting for me to solve this problem.