1.sudo apt-get install eclipse
此条命令会下载eclipse-platform
2.安装EMF
可以用sudo apt-get install eclipse-emf 或者在软件中心安装
3.安装Web Tools Platform(wtp)
打开eclipse 打开菜单栏中的Help > Install new software > 在弹出窗口中的Work with:
选中:Indigo Update Site - http://download.eclipse.org/releases/indigo/
在name列表中选中: Web, XML, Java EE and OSGi Enterprise Development
注:如果打开eclipse出现错误窗口:An error has occurred.See the log File /home/username/.eclipse/org.eclipse.platform_x.x.x_xxxxxx/configuration/xxxxxx.log
log中出现:
java.lang.UnsatisfiedLinkError:Could not load SWT library.
32位:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
64位:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
重启再打开Eclipse就OK了