java Tomcat 在 Windows x64 上使用 32 位 JDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2664424/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat on Windows x64 using 32-bit JDK
提问by Erik
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 位 Windows 上将 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). I have to run Tomcat using this 32-bit JDK.
我被迫在这台 64 位机器上安装 32 位 JDK,以便我可以使用 Java JAI 库(没有 64 位 JAI 版本)。我必须使用这个 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. 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?
问题是,它不会作为 Windows 服务启动。我正在使用 Tomcat 捆绑的 procrun 可执行文件。有没有人在 64 位机器上使用 32 位 JDK 成功地将 Tomcat 作为服务启动?
Thanks for your expertise.
感谢您的专业知识。
回答by Chris Dail
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.
要使用 64 位 JDK 运行,您需要使用编译为 64 位的 tomcat.exe 和 tomcatw.exe。要使用 32 位 JDK 运行,您需要编译为 32 位的 .exe。
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.
您为 Tomcat 获得的安装包可能包含 64 位可执行文件。转到下载页面(http://tomcat.apache.org/download-60.cgi),下载 32 位版本,您应该没问题。
This question has more info on running Tomcat with 64-bit. How to run Tomcat 6 on WinXP 64 bit?
这个问题有更多关于在 64 位上运行 Tomcat 的信息。 如何在 WinXP 64 位上运行 Tomcat 6?

![如何将 Java Long 转换为 Cassandra 的 byte[]?](/res/img/loading.gif)