[Solved] Eclipse Startup Error: Cannot load 64-bit SWT libraries on 32-

System environment: win7 – 64bit

Error log: the following error is reported:

!SESSION2015-06-1910:13:27.162-----------------------------------------------
eclipse.buildId=4.3.0.I20130605-2000
java.version=1.8.0_45
java.vendor=OracleCorporation
BootLoaderconstants:OS=win32,ARCH=x86_64,WS=win32,NL=zh_CN
Frameworkarguments:-productorg.eclipse.epp.package.standard.product
Command-linearguments:-oswin32-wswin32-archx86_64-productorg.eclipse.epp.package.standard.product
!ENTRYorg.eclipse.osgi402015-06-1910:13:28.174
!MESSAGEApplicationerror
!STACK1
java.lang.UnsatisfiedLinkError:Cannotload64-bitSWTlibrarieson32-bitJVM
atorg.eclipse.swt.internal.Library.loadLibrary(Library.java:260)
atorg.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
atorg.eclipse.swt.internal.C.<clinit>(C.java:21)
atorg.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
atorg.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:675)
atorg.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
atorg.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
atorg.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
atorg.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
atorg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
atorg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)
atjava.lang.reflect.Method.invoke(UnknownSource)
atorg.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
atorg.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
atorg.eclipse.equinox.launcher.Main.run(Main.java:1450)
atorg.eclipse.equinox.launcher.Main.main(Main.java:1426)

Error analysis:
0

first of all, through the error report, it seems that the JVM is 32bit, which does not meet the requirements of 64bit program

View Directory: C:// programdata/Oracle/Java/javapath\

Here are three shortcuts: java.exe, javaw.exe, javaws.exe. Check the shortcuts of three programs with the same name under JRE/bin with the attribute of JDK1.8 32bit

Solution:

Install 32 bit JRE in the machine, create a shortcut for the three programs with the same name under JRE/bin/and copy the shortcut to C:// program data/Oracle/Java/javapath to replace the original one

Restart eclipse, success

 

 

 

 

 

 

Similar Posts: