• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Why jdk6x is not compatiable with Tomcat7? why jdk7x compiled classes are not working in jdk6x

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

I installed jdk7x and tomcat7.2 on my windows7. When I compiled the classes and placed these classes to my dedicated server then these classes were not working due to incompatible version of jdk as on dedicated server there is jdk6x.0.13 and tomcat6.

I removed jdk7x from my machine and installed back and now its version is:

C:\Program Files (x86)\Java\Tomcat7.2\webapps\ROOT\WEB-INF\classes>java -version

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

I start getting the following error while starting the tomcat:


I installed back jdk7x 64bit and its working fine now and server started properly:


I believe Java is platform free but why compiled classes of jdk7x are not running of jdk6x or how can fix this problem?

Best regards
 
Sheriff
Posts: 22821
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem isn't with JDK6 vs JDK7, but with 32-bit vs 64-bit. The message says so - the 32-bit Tomcat couldn't load a 64-bit DLL.
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Rob,

On the same tomcat 7.2 version I re-installed jdk6 and now its working. I downloaded jdk-7-ea-bin-b137-windows-x64-07_apr_2011

Best regards
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic