问题描述
- Can't load AMD 64-bit .dll on a IA 32-bit platform
- java.lang.UnsatisfiedLinkError: D: omcatapache-tomcat-7.0.54in cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)at java.lang.Runtime.loadLibrary0(Runtime.java:823)at java.lang.System.loadLibrary(System.java:1028)at org.apache.tomcat.jni.Library.<init>(Library.java:40)at org.apache.tomcat.jni.Library.initialize(Library.java:172)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:194)at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:99)at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)at org.apache.catalina.connector.Connector.<init>(Connector.java:66)at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1288)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:1343)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)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:119)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:1561)at org.apache.catalina.startup.Catalina.load(Catalina.java:615)at org.apache.catalina.startup.Catalina.load(Catalina.java:663)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:280)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
2015-7-24 15:12:14 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:Eclipsejdk6in;D: omcatapache-tomcat-7.0.54in
2015-7-24 15:12:14 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [""http-bio-8080""]
这个是console出现的内容MyEclipse10连tomcat一直连不上,之前还能连接,功能都能实现,突然就不行了,不明原因,已经试过了64位和32位的tomcat
解决方案
你电脑是32位的或者你安装的JDK是32位吧,提示是tomcat用的是64的,而你的虚拟机用的是32位的,两个版本不一致,如果你换了tomcat,记得重新配置tomcat的HOME,重启再测试。
解决方案二:
替换该项目的jdk版本与tomcat一致 要么都是32位的,要么都是64位的
解决方案三:
JDK与tomcat的版本要一致,在这里添加新的64位的jdk,add——>standard VM——>选择jdk的路径,finish就好了。
解决方案四:
Javac compile时出错: Can't load AMD 64-bit .dll on a IA 32-bit platform
解决办法:JDK和Application的32bits?或?64bits要一致,Windows的Peference中配置JDK的安装路径和Server configuration 的JDK 中选择你添加的JDK。......
答案就在这里:Can't load AMD 64-bit .dll on a IA 32-bit platform