java - 64位的java可以和32位的tomcat一起使用吗

标签 java windows tomcat

我在尝试启动我的 tomcat 时遇到以下错误。所以我做了一些谷歌,它似乎是因为我的 tomcat 是 32 位而 Java 是 64 位。

请指教。

  [2018-07-12 15:16:18] [error] [21916] %1 is not a valid Win32 application.
[2018-07-12 15:16:19] [error] [21916] Failed creating java C:\Program Files\Java\jre1.8.0_171\bin\server\jvm.dll
[2018-07-12 15:16:19] [error] [21916] %1 is not a valid Win32 application.
[2018-07-12 15:16:19] [error] [21916] ServiceStart returned 1
[2018-07-12 15:16:19] [error] [21916] %1 is not a valid Win32 application.
[2018-07-12 15:16:19] [info]  [ 1760] Run service finished.
[2018-07-12 15:16:19] [info]  [ 1760] Commons Daemon procrun finished

最佳答案

不,它没有。您必须将 32 位 java 与 32 位 tomcat 结合使用,将 64 位 java 与 64 位 tomcat 结合使用。

参见此处:https://www.mulesoft.com/tcat/tomcat-windows

关于java - 64位的java可以和32位的tomcat一起使用吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51302823/

相关文章:

java - RxJava : How to unit test that an Observable is observed on and subscribed on the right scheduler?

windows - 从 powershell 调用 rmdir node_modules/S/Q

C++ - 访问可执行文件上的 "dropped"文件

tomcat - 在 http 和 https 之间拆分上下文

Java Web 应用程序 - 下载的文件不可读

java - 为什么 Eclipse/JSP 会解析我的 JavaScript?

java - UTF-16 中字母 A 占用的字节数是多少?

java - Java 中的 Unicode 符号(箭头)

c++ - 确定 IWICStream 缓冲区中已用内存的大小

java - Tomcat 不拾取类文件 - 不显示 JSP 文件