Tomcat:Can't load IA 32-bit .dll on a AMD 64-bit platform问题的解决

控制台错误如下:

java.lang.UnsatisfiedLinkError: D:\apache-tomcat-7.0.56\bin\tcnative-1.dll: Can‘t load IA 32-bit .dll on a AMD 64-bit platform

    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at org.apache.tomcat.jni.Library.<init>(Library.java:42)
    at org.apache.tomcat.jni.Library.initialize(Library.java:174)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:179)
    at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:84)
    at org.apache.catalina.connector.Connector.setProtocol(Connector.java:567)
    at org.apache.catalina.connector.Connector.<init>(Connector.java:69)
    at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
    at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)

    at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:598)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)

解决这个问题有两种办法

第一种方法:

检查自己的JDK版本,打开cmd,输入java -version,查看第三行是否包含"64",如果不包含,说明你设置的环境变量JAVA_HOME的地址指向是32位的JDK,那么你只需要下载64为的JDK并安装,然后修改环境变量JAVA_HOME指向64位的地址。此方法能一绝后患。说白了就是你的项目jdk版本与Tomcat中配置的jdk版本不一致。

第二种方法:

1.下载一个32位的替换   http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.31/binaries/

2.将下载下来的文件解压,找到x64文件夹下的tcnative-1.dll文件

3.替换tomcat中bin文件夹下的tcnative-1.dll文件

此时MyEclipse中的Tomcat服务器能成功启动,但是进入Tomcat的bin文件夹下,启动startup.bat文件发现报

java.lang.UnsatisfiedLinkError: D:\apache-tomcat-7.0.56\bin\tcnative-1.dll: Can‘t load IA 32-bit .dll on a AMD 64-bit platform错误。说明之前换掉的tcnative-1.dll文件出问题了。

Tomcat:Can't load IA 32-bit .dll on a AMD 64-bit platform问题的解决

时间: 2024-11-07 22:55:18

Tomcat:Can't load IA 32-bit .dll on a AMD 64-bit platform问题的解决的相关文章

8.3 sikuli 集成进eclipse 报错:eclipse中运行提示 Win32Util.dll: Can&#39;t load 32-bit .dll on a AMD 64 bit platform

sikuli运行出现问题:Win32Util.dll: Can't load 32-bit .dll on a AMD 64 bit platform 在64位平台上无法加载32位的dll文件 解决办法:将该工程设置成JDK为32位的 之前eclipse中默认加载的是64位jdk .但由于eclipse中TESTNG需要用到1.7 jdk .为保证在解决问题后,testNG还能正常使用.所以原博主是下了个32位  1.7 jdk,将该工程设置成这个就ok了 解决问题启发来自: http://ww

解决Tomcat: Can&#39;t load IA 32-bit .dll on a AMD 64-bit platform 问题

错误如下: java.lang.UnsatisfiedLinkError: E:\Program Files\MyEclipse 10\apache-tomcat-7.0.23\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLi

解决Tomcat: Can&#39;t load IA 32-bit .dll on a AMD 64-bit platform问题

解决Tomcat: Can't load IA 32-bit .dll on a AMD 64-bit platform问题,点我,点我: 解决Tomcat: Can't load IA 32-bit .dll on a AMD 64-bit platform问题

Tomcat之启动报错Can&#39;t load IA 32-bit .dll on a AMD 64-bit platform

解决Tomcat: Can't load IA 32-bit .dll on a AMD 64-bit platform问题 分类: Tomcat MyEclipse 服务器 引用地址:http://blog.sina.com.cn/s/blog_65f1519f0100sdzg.html 错误如下: [java] view plaincopy java.lang.UnsatisfiedLinkError: E:\Program Files\MyEclipse 10\apache-tomcat-

解决32位plsql_Developer客户端连接不64位Oracle11g上数据库

问题:解决32位plsql_Developer客户端连接不64位Oracle11g上数据库 解决: 1.将下载instantclient-basic-win32-11.2.0.1.0.zip文件解压,然后复制到Oracle数据库安装的文件夹下的product文件夹下 2.在Oracle安装文件下找到文件listener.ora,例如我的在D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN里面.复制到    D:\app\Admin

Tomcat Can&#39;t load AMD 64-bit .dll on a IA 32

1.下载64位的tcnative-1.dll替换tomcat中bin目录下的tcnative-1.dll就解决了 2.tcnative-1.dll下载地址 请点击 这里 Tomcat Can't load AMD 64-bit .dll on a IA 32

解决tomcat Can&#39;t load AMD 64-bit .dll on a IA 32-bit platform问题

tomcat Can't load AMD 64-bit .dll on a IA 32-bit platform 翻译出来就是 在IIA 32位平台上,Tomcat无法加载AMD 64位DLL. 什么时候会出现这样的情况? 比如说,现在你的电脑是64位的,但是你安装了一个32位的jdk,此时启动tomcat就汇报这个错误 处理的方法就是安装一个64位的jdk就可以了. 如果是tomcat Can't load AMD 32-bit.dll on a IA 64-bit platform,则是t

java.lang.UnsatisfiedLinkError: D:\apache-tomcat-7.0.57\bin\tcnative-1.dll: Can&#39;t load IA 32-bit .dll on a AMD 64-bit platform 错误

为了开发JavaWEB,安装了MyEclipse,在运行tomcat的时候发现报错:java.lang.UnsatisfiedLinkError: D:\apache-tomcat-7.0.57\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform.自己上网查了下,发现这个错误对于项目的运行时没有什么大碍的,可能自己有强迫症,总是想没错,就上网找了解决方法.我先麻烦,就选择了最简单的方法,去tomcat目录下

Can&#39;t load IA 32-bit .dll on a AMD 64-bit platform错误的解决

64位的系统,64位的myeclipse,64位的jdk,64位的tomcat,结果报错:Can't load IA 64-bit .dll on a AMD 32-bit platform,简直无语 换了32位的tomcat,结果又报错:Can't load IA 32-bit .dll on a AMD 64-bit platform..... 解决办法:找到32位的tomcat文件夹下bin\tcnative-1.dll,替换成64位的tcnative-1.dll,就好了 Can't lo