• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • 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
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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: 833
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic