Information/리눅스 2016. 7. 20. 13:52

ubuntu 12.04 에서 eclipse 설치 이후 오류 발생

ubuntu 패키지에 있는 eclipse 를 설치한 뒤에 실행하면 다음과 같은 오류가 발생합니다.



An error has occurred. See the log file
/home/xxxxxx/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/xxxxxxxxx.log


해당 로그 파일을 열어보면 다음과 같습니다.



java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
.....



해결 방법은 SWT 라이브러리 심볼릭 링크를 만들어주면 됩니다.

32비트 ubuntu 에서는 다음과 같습니다.

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/


64비트 ubuntu 에서는 다음과 같습니다.

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/


참고:

http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries

'Information > 리눅스' 카테고리의 다른 글

2.0. centOS 7에 NGINX 설치 및 기본 설정  (0) 2016.01.27
1.0. 우분투에 NGINX 설치  (0) 2016.01.22
0.0. 리눅스 설치 및 설정  (0) 2016.01.22