运行Java Eclipse SWT(64位Linux)

时间:2021-01-10 22:23:45

i have a eclipse project that uses eclipse SWT which runs smoothly on my windows eclipse. i share the project (via SVN) and try to run it on my 64 Bit Linux system. i downloaded a stable swt version for 64 bit linux and imported it into my workspace but i get this error:

我有一个使用eclipse SWT的eclipse项目,它在我的windows eclipse上顺利运行。我共享项目(通过SVN)并尝试在我的64位Linux系统上运行它。我为64位linux下载了一个稳定的swt版本并将其导入我的工作区但是我收到此错误:

Exception in thread "Thread-0" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at //my project class

what can i do about it?

我该怎么办呢?

1 个解决方案

#1


1  

Unknown Mozilla path (MOZILLA_FIVE_HOME not set) is hinting at the fact that the WebKit library is missing on your Linux system. If you have a Debian based one (incl. Ubuntu), running the following command should solve your problem:

未知的Mozilla路径(MOZILLA_FIVE_HOME未设置)暗示Linux系统上缺少WebKit库。如果你有一个基于Debian的(包括Ubuntu),运行以下命令应该可以解决你的问题:

sudo apt-get install libwebkitgtk-1.0-0

#1


1  

Unknown Mozilla path (MOZILLA_FIVE_HOME not set) is hinting at the fact that the WebKit library is missing on your Linux system. If you have a Debian based one (incl. Ubuntu), running the following command should solve your problem:

未知的Mozilla路径(MOZILLA_FIVE_HOME未设置)暗示Linux系统上缺少WebKit库。如果你有一个基于Debian的(包括Ubuntu),运行以下命令应该可以解决你的问题:

sudo apt-get install libwebkitgtk-1.0-0