• Can't load AMD 64-bit .dll on a IA 32-bit platform Intellij IDEA tomcat启动报异常


    Intellij IDEA配置好,启动tomcat报以下异常

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

    32位的虚拟机加载不了64位的AMD。。很明显是jdk版本与tomcat版本不一致。
    于是,我查下本地jdk版本,显示的是64位。

    再看下下面的日志,Using JRE_HOME: "C:Program Files (x86)Javajdk1.6.0_20"

    在查下jdk1.6.0_20版本,显示如下。很可能就是jdk1.6版本不符合,于是,把jdk版本改为jdk1.7..启动就正常了

    Using CATALINA_BASE:   "D:Userszhongmusheng790.IntelliJIdea2017.1system	omcatUnnamed_smp_pss_j2ee1_10_1"
    Using CATALINA_HOME:   "D:Program Files (x86)javaserversapache-tomcat-7.0.79"
    Using CATALINA_TMPDIR: "D:Program Files (x86)javaserversapache-tomcat-7.0.79	emp"
    Using JRE_HOME:        "C:Program Files (x86)Javajdk1.6.0_20"
    Using CLASSPATH:       ""D:zhongmsspace0smp_pss_j2ee1.11.0srcconfigcore";D:Program Files (x86)javaserversapache-tomcat-7.0.79inootstrap.jar;D:Program Files (x86)javaserversapache-tomcat-7.0.79in	omcat-juli.jar"
    2017-8-11 16:39:20 org.apache.catalina.core.AprLifecycleListener init
    警告: The APR based Apache Tomcat Native library failed to load. The error reported was [D:Program Files (x86)javaserversapache-tomcat-7.0.79in	cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]
    java.lang.UnsatisfiedLinkError: D:Program Files (x86)javaserversapache-tomcat-7.0.79in	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:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
        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:42)
        at org.apache.tomcat.jni.Library.initialize(Library.java:178)
        at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:200)
        at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:108)
        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:1303)
        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:2755)
        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: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:1576)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:617)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:668)
        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:253)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
    2017-8-11 16:39:20 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version:        Apache Tomcat/7.0.79
    2017-8-11 16:39:20 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built:          Jun 26 2017 16:25:20 UTC
  • 相关阅读:
    部署NetCore项目(本文介绍用用IIS部署)
    vs中添加MySql实体集流程
    一文搞定HashMap的实现原理
    二分查找
    hashcode返回值可能为负数
    哈希碰撞与生日攻击
    并发的第二天
    java并发编程-1
    排序的第一天
    并发的第一天
  • 原文地址:https://www.cnblogs.com/chuangzhijian/p/7346960.html
Copyright © 2020-2023  润新知