Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat on Windows x64 using 32-bit JDK

Hoping someone can help.

The rub: I can't get Tomcat 5.5 to start as a windows service on 64-bit windows using a 32-bit JDK.

the details: I've been running Tomcat 5.5 on Windows Server 2008 (x64) as a service for some time using a 64-bit JDK.

I'm being forced to install a 32-bit JDK on this 64-bit machine so I can make use of the Java JAI libraries (no 64-bit JAI version). I have to run Tomcat using this 32-bit JDK.

I can run Tomcat using the 32-bit JDK if I start it using /bin/startup.bat

Problem is, it will not start as a windows service. I'm using the Tomcat bundled procrun executables. Has anyone had success starting Tomcat as a service using a 32-bit JDK on a 64-bit machine?

Thanks for your expertise.

like image 559
Erik Avatar asked Apr 18 '10 23:04

Erik


People also ask

Can I run 32 bit Java on 64-bit Windows?

However you cannot run 64bits program if your OS and IE belong to a 32bit architecture. Also you will not be able to install programs belonging to both bits on the same laptop. This will make the 32bit Java run but will not work for 64. Was this reply helpful?

Can JDK run on 32 bit?

The Java Platform was designed to allow applications to run on different hardware stacks and operating systems without changes. Java is available on Microsoft Windows in 64 and 32 bit versions, allowing users to get the appropriate version for their system.

Is Tomcat 32 or 64-bit?

If you are running a 32-bit version of Windows, you MUST use a 32-bit distribution of Apache Tomcat, as well as a 32-bit JDK. If you are using a 64-bit system, you can technically run either a 32- or 64-bit distribution, as long as the bit architecture of the JDK you have installed matches your Tomcat distribution.

Is JDK required for Tomcat?

Building Apache Tomcat requires a JDK (version ) or later to be installed.


1 Answers

To run with a 64-bit JDK, you need to use tomcat.exe and tomcatw.exe that are compiled 64-bit. To run with a 32-bit JDK, you need the .exes that are compiled 32-bit.

It is likely that the install package you got for Tomcat contained 64-bit executables. Go to the download page (http://tomcat.apache.org/download-60.cgi), download the 32-bit version and you should be fine.

This question has more info on running Tomcat with 64-bit. How to run Tomcat 6 on WinXP 64 bit?

like image 98
Chris Dail Avatar answered Oct 11 '22 20:10

Chris Dail