Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » BrowserField on Mac OS X
BrowserField on Mac OS X [message #1059113] Thu, 16 May 2013 15:53 Go to next message
Aqua Macboy is currently offline Aqua Macboy
Messages: 8
Registered: February 2013
Junior Member
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?
Re: BrowserField on Mac OS X [message #1060214 is a reply to message #1059113] Thu, 23 May 2013 10:36 Go to previous messageGo to next message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 84
Registered: February 2010
Location: Baden Switzerland
Member

Hi
Can you confirm that you have one of the following fragments in your product
org.eclipse.swt.cocoa.macosx.x86_64

for the 64bit jre - probably the one you have.

Or

org.eclipse.swt.cocoa.macosx

for the 32bit jre - this would be uncommon but worth checking.

Greetings
Stephan
Re: BrowserField on Mac OS X [message #1060571 is a reply to message #1060214] Mon, 27 May 2013 02:47 Go to previous message
Aqua Macboy is currently offline Aqua Macboy
Messages: 8
Registered: February 2013
Junior Member
Thank you for your response, Stephan.

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?
Previous Topic:Marketplace entries?
Next Topic:[META] Searching the forum for my own posts
Goto Forum:
  


Current Time: Tue May 28 03:09:50 EDT 2013

Powered by FUDForum. Page generated in 0.01837 seconds