可能需要将环境变量 MOZILLA_FIVE_HOME 设为包含 Firefox 或 Mozilla 安装目录的文件夹。例如,setenv MOZILLA_FIVE_HOME /usr/lib/firefox-1.5。
如果您不设置此环境变量,那么当您运行该产品时,您可能会看到以下错误消息:org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
要支持 SWT 浏览器窗口小部件,必须动态链接 Firefox 浏览器,这意味着不是从 mozilla.org 下载该浏览器,而是从源代码编译该浏览器。如果 Firefox 作为分发的一部分提供(即,它放置在 /usr/lib/firefox 之类的目录中),那么通常需要进行动态链接。
确定是否需要动态链接的一种方法是查看 /etc/gre.conf 是否指向该浏览器。此 gre.conf 文件的用途是指向可嵌入的浏览器。
org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: /home/n0002466/.eclipse/ibm.software.development.platform_7.0.0/configuration/org.eclipse.osgi/bundles/267/1/.cp/libswt-mozilla-gtk-3236.so (libxpcom.so: cannot open shared object file: No such file or directory))
如果操作系统是 SUSE Linux Enterprise Desktop 10 SP1 或 SUSE Linux Enterprise Server 10 SP1,那么您可能需要以下操作系统更新,才能解决在某些编辑器中无法显示文本的问题:http://support.novell.com/techcenter/psdb/44ab155e3202595389c101e6cf7e20f2.html。