I need to create an executable application. This applications
uses the Browser class. The rendering engine is WebKit. Platform is linux
gentoo 64 bit.
I downloaded swt-3.7.2-gtk-linux-x86_64.zip and added its swt.jar to the
path of my application. When I run the application I get:
Exception in thread "main" org.eclipse.swt.SWTError: No more
handles
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
I am initializing the browser with:
browser = new Browser(browserPanel, SWT.WEBKIT);
My questions :
1- how do I get rid of this error message and debug the application under
eclipse.
2- If I need to create executables using gcj, targeting windows. I will
need to build cross compiler, but how do I make all the libraries available
so that the user don't need to download anything else ?