2 troublemaker2014 troublemaker2014 于 2015.07.24 15:20 提问

Can't load AMD 64-bit .dll on a IA 32-bit platform

java.lang.UnsatisfiedLinkError: D:\tomcat\apache-tomcat-7.0.54\bin\tcnative-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:\Eclipse\jdk6\bin;D:\tomcat\apache-tomcat-7.0.54\bin
2015-7-24 15:12:14 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
这个是console出现的内容

MyEclipse10连tomcat一直连不上,之前还能连接,功能都能实现,突然就不行了,不明原因,已经试过了64位和32位的tomcat

4个回答

licuifeng
licuifeng   2015.07.27 14:07

替换该项目的jdk版本与tomcat一致 要么都是32位的,要么都是64位的

sinat_28887379
sinat_28887379   2016.05.25 10:19

JDK与tomcat的版本要一致,在这里添加新的64位的jdk,add——>standard VM——>选择jdk的路径,finish就好了。
图片说明

CSDNXIAOS
CSDNXIAOS   2015.07.24 15:24

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
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

troublemaker2014
troublemaker2014 server configuration这个东西在哪儿啊
2 年多之前 回复
tongyi55555
tongyi55555   2015.07.25 11:31

你电脑是32位的或者你安装的JDK是32位吧,提示是tomcat用的是64的,而你的虚拟机用的是32位的,两个版本不一致,如果你换了tomcat,记得重新配置tomcat的HOME,重启再测试。

Csdn user default icon
上传中...
上传图片
插入图片