Eclipse常见问题

1.Eclipse设定文件的默认打开方式
今天打开xml发现注释的 “——>”都无法显示,查看打开方式原来都是以Spket XML Editor。
解决方法:
设置默认打开方式为XML Editor。
菜单:Window -> Preferences -> General -> Editors -> File Associations
File types: *.xml
Associated editors:XML Editor*** -> Default
在Associated editors选择框里点击“XML Editor*** ”,点击“Default”按钮。
你将看到“XML Editor*** ”排在最上面,其变为“XML Editor(Default)*** ”。
好了,你再双击*.xml文件试试,是不是ok了。

2.eclipse 报错java.lang.UnsatisfiedLinkError: Could not load SWT library

解决办法:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
原文地址:https://www.cnblogs.com/chengliu/p/4130638.html