| Author |
Why jdk6x is not compatiable with Tomcat7? why jdk7x compiled classes are not working in jdk6x
|
Farakh khan
Ranch Hand
Joined: Mar 22, 2008
Posts: 672
|
|
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
Joined: Oct 27, 2005
Posts: 19232
|
|
|
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.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Farakh khan
Ranch Hand
Joined: Mar 22, 2008
Posts: 672
|
|
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
|
 |
 |
|
|
subject: Why jdk6x is not compatiable with Tomcat7? why jdk7x compiled classes are not working in jdk6x
|
|
|