Did anyone manage to get the BrowserField running on Mac OS X? I always get the following error:
Exception in thread "SWT HTML Display Dispatcher" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at org.eclipse.scout.rt.ui.swing.form.fields.browserfield.internal.SwingScoutBrowserField$StaticDisplayDispatcher.run(SwingScoutBrowserField.java:368)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 1 more
I am using Java 7 on OS X Snow Leopard. I have the SWT Bundle and Fragment included in my product and I am following this thread (http://www.eclipse.org/forums/index.php/t/452511/) to launch my client. Is it possible to use the BrowserField on OS X?
The x86_64 fragment was there but not loading since I did start the Eclipse Scout application with the -arch x64 option as mentioned in another post (http://www.eclipse.org/forums/index.php/t/452511/). Now I switched to the solution proposed by Adrian Moser in the same thread, starting the application with the -nosplash option.
This seems to help (the SWT bundle loads), but gives me another error:
***WARNING: Display must be created on main thread due to Cocoa restrictions.
and then
Exception in thread "SWT HTML Display Dispatcher" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4361)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Display.error(Display.java:1068)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:825)
at org.eclipse.swt.widgets.Display.create(Display.java:808)
at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1386)
at org.eclipse.scout.rt.ui.swing.form.fields.browserfield.internal.SwingScoutBrowserField$StaticDisplayDispatcher.run(SwingScoutBrowserField.java:368)
Did you successfully use the BrowserField on OS X?