Cannot load 64-bit SWT libraries on 32-bit JVM solution, swtjvm
Problem description:
When Eclipse is used in windows today, it is found that Eclipse cannot be run. I cannot run any of them. I am a windows 8.1 (X64) system. I haven't used windows Eclipse for a long time. I began to suspect that it may be a compatibility problem, the Administrator mode and compatibility mode are used to find that they still cannot run.
Solution:
I suddenly remembered that there was a log file in Eclipse. I have never studied the log file before. At this time, I can find out the importance of the log file.
Open the configuration folder under the Eclipse Folder:
Here we can see a lot of log files from the image. The log file is the log file here.
Open the top log File: You can see the error description in it.
Error description:
eclipse.buildId=M20130204-1200java.version=1.8.0_31java.vendor=Oracle CorporationBootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CNFramework arguments: -product com.android.ide.eclipse.adt.package.adtproductCommand-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct!ENTRY org.eclipse.osgi 4 0 2015-02-15 14:17:51.101!MESSAGE Application error!STACK 1java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Library.java:260) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240) at org.eclipse.swt.internal.C.<clinit>(C.java:21) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Then the most important error is
Cannot load 64-bit SWT libraries on 32-bit JVM
After finding this error, I suddenly remembered that I had installed a jre software, which may be caused by that software.
Solution:
According to the error, I inferred that it was a jre software configuration error. A 32-bit jre may be installed, So I downloaded a 64-bit jre on the java Website:
Then install the tool directly. After the installation is complete, it is found that Eclipse is ready to run and the problem is solved.
Problems: