• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM 64 bit vs 32 bit compatibility

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

I am a bit confused about something.

I compiled a java application in Eclipse Kepler on 32 bits (using, of course a 32 bit jvm). I deployed it on a server using a jvm on 64 bits. When restarting the server, i got the"unsupported major minor 51 exception".
Note that i used the same java version for compiling my project as the server used.
It did not work until i compiled with another 64 bit eclipse (hence 64 bit java).

I find it strange since jvm is platform independent. Would it matter if i deploy 32 bit java compiled project on server using 64 bit java version?
 
Marshal
Posts: 79180
377
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unsupported version has nothing to do with bit numbers. It means you compiled it with a newer version (I think 51=Java7 but not certain) and tried to run it with an older version. Check carefully what the version numbers are on your different computers. Use the following two commands:-
java -version
javac -version
 
Ranch Hand
Posts: 300
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's also worth checking your PATH variable, because sometime you have couple of JRE in path where lower version coming first.
reply
    Bookmark Topic Watch Topic
  • New Topic