Thanks radoulov buddy! You are absolutely right, there was a mismatch in JDK version. Java is really platform-independant, I think I've confirmed it. Thanks for your help.
Problem solved!
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
Googling java Unsupported major.minor version produces essentially the answer provided by radoulov. The second of about 86K hits contained:
Quote:
It means that you compiled your classes under a specific JDK, but then try to run them under older version of JDK. So, you can't run classes compiled with JDK 6.0 under JDK 5.0. The same with classes compiled under JDK 7.0 when you try to run them under JDK 6.0.
---------- Post updated at 11:18 ---------- Previous update was at 09:51 ----------
Hi.
Here is a script that compiles a java code on a 64-bit box with Sun java:
producing:
Now the code will be transferred to a 32-bit box running GNU java, and only executed with this script:
producing:
My conclusion is that for simple codes, java is platform independent. Whether or not this holds for complex codes is left as an exercise.