I wrote a simple program. just a CTabFolder and a WelcomTab inherent from CTabItem. I want to fill my WelcomeTab by a browser which render my htmls. at the init() method of WelcomeTab I Create a Browser but when program want to construct it I get this Error
我写了一个简单的程序。只是CTabFolder和CTabItem固有的WelcomTab。我想用浏览器填充我的WelcomeTab来渲染我的htmls。在WelcomeTab的init()方法我创建一个浏览器但是当程序想要构造它时我得到这个错误
Exception in thread "main" 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 org.hekmatof.Hbook.UI.WelcomeTab.init(WelcomeTab.java:55)
at org.hekmatof.Hbook.UI.WelcomeTab.<init>(WelcomeTab.java:30)
...
...
in addition I Use Eclipse 3.7 on KDE based on Arch-Linux as I searched for this Error everywhere tells about handle limited on threads, but this is simple program with no Font or Image ... to dispose. I think it should be a problem about gain handle from Operation System
另外我在基于Arch-Linux的KDE上使用Eclipse 3.7,因为我搜索了这个错误,无处不在告诉有关线程的句柄限制,但这是简单的程序,没有Font或Image ...要处置。我认为应该是关于操作系统的增益处理的问题
5 个解决方案
#1
8
It's not about system handles (directly), it's about firefox installation.
它不是关于系统句柄(直接),而是关于firefox安装。
Check the SWT FAQ - What do I need to run the SWT Browser inside Eclipse on Linux and SWT Bug 103611 - internet cache didn't work on Linux and especially IBM Support - SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)].
查看SWT常见问题解答 - 在Linux和SWT上运行Eclipse内部的SWT浏览器需要什么Bug 103611 - Internet缓存在Linux上无法运行,特别是IBM支持 - SWTError:不再处理[未知Mozilla路径(MOZILLA_FIVE_HOME未设置) ]。
EDIT
编辑
For the seconds error message check Eclipse Community Forums - Could not detect registered XULRunner to use and also check if you have correct XULRunner version installed at SWT FAQ - What do I need to run the SWT Browser inside Eclipse on Linux?.
对于秒错误消息检查Eclipse社区论坛 - 无法检测要使用的已注册XULRunner,并检查您是否在SWT上安装了正确的XULRunner版本常见问题解答 - 在Linux上运行Eclipse内部的SWT浏览器需要什么?
#2
10
Install libwebkitgtk
安装libwebkitgtk
sudo apt-get install libwebkitgtk-1.0-0
restart the application. This should work.
重启应用程序。这应该工作。
#3
1
This problem apparently comes when eclipse is trying to use internal browser or external browser is miss-configured (internal probably use libwebkit-1.0 to render content).
当eclipse试图使用内部浏览器或外部浏览器未配置时(内部可能使用libwebkit-1.0来呈现内容),这个问题显而易见。
Start eclipse go to preferences, ignore error if happens. Type web browser in the search, then pick web browser tab and add your add and mark your favorite browser (in my case chrome)
启动eclipse转到首选项,如果发生则忽略错误。在搜索中键入Web浏览器,然后选择Web浏览器选项卡并添加添加并标记您喜欢的浏览器(在我的情况下为chrome)
If you use linux you can use which [browser-name] to get path.
如果你使用linux,你可以使用哪个[browser-name]来获取路径。
It helped in my case - good luck
这有助于我的情况 - 祝你好运
#4
1
Take a look at this post: How to set up internal browser for Aptana on Linux
看一下这篇文章:如何在Linux上为Aptana设置内部浏览器
Basically, you will need to install XULRunner then edit the eclipse.ini.
基本上,您需要安装XULRunner然后编辑eclipse.ini。
After installing xulrunner, adding the following line in the eclipse.ini solved the problem.
安装xulrunner后,在eclipse.ini中添加以下行解决了这个问题。
-Dorg.eclipse.swt.browser.XULRunnerPath=/opt/eclipse/xulrunner/
-Dorg.eclipse.swt.browser.XULRunnerPath = /选择/蚀/ xulrunner的/
#5
0
This problem comes out when XUL runner version is too high which is not compatible with SWT browser. It has nothing do to with system browser.
当XUL运行器版本太高而与SWT浏览器不兼容时,会出现此问题。它与系统浏览器没有任何关系。
#1
8
It's not about system handles (directly), it's about firefox installation.
它不是关于系统句柄(直接),而是关于firefox安装。
Check the SWT FAQ - What do I need to run the SWT Browser inside Eclipse on Linux and SWT Bug 103611 - internet cache didn't work on Linux and especially IBM Support - SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)].
查看SWT常见问题解答 - 在Linux和SWT上运行Eclipse内部的SWT浏览器需要什么Bug 103611 - Internet缓存在Linux上无法运行,特别是IBM支持 - SWTError:不再处理[未知Mozilla路径(MOZILLA_FIVE_HOME未设置) ]。
EDIT
编辑
For the seconds error message check Eclipse Community Forums - Could not detect registered XULRunner to use and also check if you have correct XULRunner version installed at SWT FAQ - What do I need to run the SWT Browser inside Eclipse on Linux?.
对于秒错误消息检查Eclipse社区论坛 - 无法检测要使用的已注册XULRunner,并检查您是否在SWT上安装了正确的XULRunner版本常见问题解答 - 在Linux上运行Eclipse内部的SWT浏览器需要什么?
#2
10
Install libwebkitgtk
安装libwebkitgtk
sudo apt-get install libwebkitgtk-1.0-0
restart the application. This should work.
重启应用程序。这应该工作。
#3
1
This problem apparently comes when eclipse is trying to use internal browser or external browser is miss-configured (internal probably use libwebkit-1.0 to render content).
当eclipse试图使用内部浏览器或外部浏览器未配置时(内部可能使用libwebkit-1.0来呈现内容),这个问题显而易见。
Start eclipse go to preferences, ignore error if happens. Type web browser in the search, then pick web browser tab and add your add and mark your favorite browser (in my case chrome)
启动eclipse转到首选项,如果发生则忽略错误。在搜索中键入Web浏览器,然后选择Web浏览器选项卡并添加添加并标记您喜欢的浏览器(在我的情况下为chrome)
If you use linux you can use which [browser-name] to get path.
如果你使用linux,你可以使用哪个[browser-name]来获取路径。
It helped in my case - good luck
这有助于我的情况 - 祝你好运
#4
1
Take a look at this post: How to set up internal browser for Aptana on Linux
看一下这篇文章:如何在Linux上为Aptana设置内部浏览器
Basically, you will need to install XULRunner then edit the eclipse.ini.
基本上,您需要安装XULRunner然后编辑eclipse.ini。
After installing xulrunner, adding the following line in the eclipse.ini solved the problem.
安装xulrunner后,在eclipse.ini中添加以下行解决了这个问题。
-Dorg.eclipse.swt.browser.XULRunnerPath=/opt/eclipse/xulrunner/
-Dorg.eclipse.swt.browser.XULRunnerPath = /选择/蚀/ xulrunner的/
#5
0
This problem comes out when XUL runner version is too high which is not compatible with SWT browser. It has nothing do to with system browser.
当XUL运行器版本太高而与SWT浏览器不兼容时,会出现此问题。它与系统浏览器没有任何关系。