问题描述
- 刚安装eclipse,出现错误
-
刚安装eclipse,出现错误:an error has occurred see the log file
(在官网下的org.objectweb.lomboz-all-in-one-R-3.2.2-2007)是在C盘根目录下解压的,,装的jdk1.6,环境变量也配的没问题,求大神解答。!SESSION 2014-12-21 01:29:27.547 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY org.eclipse.osgi 4 0 2014-12-21 01:29:31.319
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: C:eclipseconfigurationorg.eclipse.osgibundles2471.cpswt-win32-3236.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:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1716)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.win32.OS.(OS.java:18)
at org.eclipse.swt.widgets.Display.(Display.java:125)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:436)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
解决方案
解决办法使用jre_x64运行,把dll文件放到工程下面:
下载地址
http://www.oracle.com/technetwork/java/javase/downloads/jre-6u26-download-400751.html
具体看
http://blog.chinaunix.net/uid-11121450-id-374986.html
解决方案二:
可能是jdk和eclipse的版本不对应吧,一个是32位的,一个是64位的,建议要么都是32位要么都是64位的。
解决方案三:
Can't load IA 32-bit .dll on a AMD 64-bit platform
出错提示很明显了,具体看一楼的解决办法