• 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

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: 22784
131
Eclipse IDE Spring VI Editor 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic