简体   繁体   English

使用32位JDK的Windows x64上的Tomcat

[英]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. 问题:我无法使用32位JDK在64位窗口上启动Tomcat 5.5作为Windows服务。

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. 详细信息:我使用64位JDK在Windows Server 2008(x64)上运行Tomcat 5.5作为服务已有一段时间了。

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). 我被迫在这个64位机器上安装一个32位JDK,所以我可以使用Java JAI库(没有64位JAI版本)。 I have to run Tomcat using this 32-bit JDK. 我必须使用这个32位JDK运行Tomcat。

I can run Tomcat using the 32-bit JDK if I start it using /bin/startup.bat 如果我使用/bin/startup.bat启动它,我可以使用32位JDK运行Tomcat

Problem is, it will not start as a windows service. 问题是,它不会作为Windows服务启动。 I'm using the Tomcat bundled procrun executables. 我正在使用Tomcat捆绑的procrun可执行文件。 Has anyone had success starting Tomcat as a service using a 32-bit JDK on a 64-bit machine? 有没有人在64位计算机上使用32位JDK作为服务启动Tomcat成功?

Thanks for your expertise. 感谢您的专业知识。

To run with a 64-bit JDK, you need to use tomcat.exe and tomcatw.exe that are compiled 64-bit. 要使用64位JDK运行,需要使用64位编译的tomcat.exe和tomcatw.exe。 To run with a 32-bit JDK, you need the .exes that are compiled 32-bit. 要使用32位JDK运行,需要32位编译的.exes。

It is likely that the install package you got for Tomcat contained 64-bit executables. 您为Tomcat获取的安装包可能包含64位可执行文件。 Go to the download page ( http://tomcat.apache.org/download-60.cgi ), download the 32-bit version and you should be fine. 转到下载页面( http://tomcat.apache.org/download-60.cgi ),下载32位版本,你应该没问题。

This question has more info on running Tomcat with 64-bit. 这个问题有关于使用64位运行Tomcat的更多信息。 How to run Tomcat 6 on WinXP 64 bit? 如何在WinXP 64位上运行Tomcat 6?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM