码迷,mamicode.com
首页 > 其他好文 > 详细

Can't load IA 32-bit .dll on a AMD 64-bit platform解决方案

时间:2015-03-31 18:03:43      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:

在myeclipse中使用的,tomcat异常:
java.lang.UnsatisfiedLinkError: D:\JAVA\ApacheTomcat\bin\tcnative-1.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoaderNativeLibrary.load(NativeMethod)atjava.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)atjava.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)atjava.lang.Runtime.loadLibrary0(Runtime.java:823)atjava.lang.System.loadLibrary(System.java:1030)atorg.apache.tomcat.jni.Library.(Library.java:42)atorg.apache.tomcat.jni.Library.initialize(Library.java:174)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:179)atorg.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:84)atorg.apache.catalina.connector.Connector.setProtocol(Connector.java:577)atorg.apache.catalina.connector.Connector.(Connector.java:69)atorg.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)atorg.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)atcom.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImplFragmentContentDriver.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:601)
at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
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)

在myeclipse启动tomcat的时候会报错。
解决办法,去该地址下载一个32位的dll文件,替换tomcat的bin\目录下对应的文件

替换 \bin 目录下的tcnative-1.dll 为64位的版本 http://pan.baidu.com/s/1jGkoU0Y

Can't load IA 32-bit .dll on a AMD 64-bit platform解决方案

标签:

原文地址:http://blog.csdn.net/liuweidagege/article/details/44782303

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!