Tomcat: Can & #39; t load IA 32-bit. dll on a AMD 64-bit platform solution, 64-bitplatform

Source: Internet
Author: User

Tomcat: Can't load IA 32-bit. dll on a AMD 64-bit platform, 64-bitplatform

 

The console error is as follows:

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)

Cause:

Jdk installed in a 64-bit system is 64-bit (virtual machines, that is, 64-bit). According to the error reported, a 64-bit virtual machine cannot be loaded in a 64-bit system, it can only load 32 bits.

Solution:

1. Download a 32-bit replacement http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.31/binaries/

2. decompress the downloaded file and find the tcnative-1.dll file under the x64 folder

3. Replace the tcnative-1.dll file under the bin folder in tomcat


JAVA serial communication appears win32comdll: Can't load IA 32-bit dll on a AMD 64-bit platform

It is recommended to change to rxtx, Which is lightweight and easy to use. The official website has the source code and documentation.

JavalangUnsatisfiedLinkError: D: \: Can't load IA 32-bit dll on a AMD 64-bit platform

The prompt is so obvious... The error jre/jdk has been downloaded. The 64-bit
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.