Version: Ubuntu12.04, Eclipse3.7.2-1, OracleJava1.7sudoapt-getinstalleclipse after installation, open eclipse, and prompt Anerrorhasoccurred. Seethelogfile/home/pengeorge/. eclipse/org. eclipse. Example
Version: Ubuntu 12.04, Eclipse3.7.2-1, Oracle Java 1.7
Sudo apt-get install eclipse
Open eclipse after installation, and an error is prompted
An error has occurred. See the log file
/Home/pengeorge/. eclipse/org. eclipse. platform_3.7.0_155965261/configuration/1342406790169. log.
Open the log file and see the following error
! SESSION 10:46:29. 992 -----------------------------------------------
Eclipse. buildId = I20110613-1736
Java. version = 1.7.0 _ 05
Java. vendor = Oracle Corporation
BootLoader constants: OS = linux, ARCH = x86, WS = gtk, NL = zh_CN
Command-line arguments:-OS linux-ws gtk-arch x86
! ENTRY org. eclipse. osgi 4 0 10:46:31. 885
! MESSAGE Application error
! STACK 1
Java. lang. UnsatisfiedLinkError: cocould not load SWT library. Reasons:
No swt-gtk-3740 in java. library. path
No swt-gtk in java. library. path
Could't load library:/home/pengeorge/. swt/lib/linux/x86/libswt-gtk-3740.so
Could't load library:/home/pengeorge/. swt/lib/linux/x86/libswt-gtk.so
At org. eclipse. swt. internal. Library. loadLibrary (Library. java: 285)
At org. eclipse. swt. internal. Library. loadLibrary (Library. java: 194)
At org. eclipse. swt. internal. C. (C. java: 21)
At org. eclipse. swt. internal. Converter. wcsToMbcs (Converter. java: 63)
At org. eclipse. swt. internal. Converter. wcsToMbcs (Converter. java: 54)
At org. eclipse. swt. widgets. Display. (Displayed. java: 132)
At org. eclipse. ui. internal. Workbench. createDisplay (Workbench. java: 695)
At org. eclipse. ui. PlatformUI. createDisplay (PlatformUI. java: 161)
At org. eclipse. ui. internal. ide. application. IDEApplication. createDisplay (IDEApplication. java: 153)
At org. eclipse. ui. internal. ide. application. IDEApplication. start (IDEApplication. java: 95)
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: 344)
At org. eclipse. core. runtime. adaptor. EclipseStarter. run (EclipseStarter. java: 179)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 57)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 601)
At org. eclipse. equinox. launcher. Main. invokeFramework (Main. java: 622)
At org. eclipse. equinox. launcher. Main. basicRun (Main. java: 577)
At org. eclipse. equinox. launcher. Main. run (Main. java: 1410)
Copy related files ~ /. Swt/lib/linux/x86
Cp/usr/lib/jni/libswt-* 3740.so ~ /. Swt/lib/linux/x86