在MyEclipse中部署JAVA web程序并启动tomcat时,出现java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError:E:\myWorkruan\Java\tomcat\bin\tcnative-1.dll:Can'tload...
java.lang.UnsatisfiedLinkError: E:\myWorkruan\Java\tomcat\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:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
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:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
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 java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
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:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
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) 展开
2个回答
展开全部
你系统是32位的吧,你下载的tomcat是64位的
追问
系统是64位的!!从cmd里面可以打开tomcat!就是在myeclipse里面就会出现这个错误!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
很有可能你还有一个以前安装的 JRE, 然后你现在的 JRE HOME 还是指向旧的JRE
更多追问追答
追问
如何解决!!能不能说清楚点 谢谢
追答
windows 下 进自己当初设的环境变量,找到自己的JRE HOME,然后改为你现在当下需要使用的JRE。
linux 下
JRE_HOME=/opt/jre
export JRE_HOME
PATH=/opt/jre/bin:$PATH
export $PATH
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询