Nebula DateChooserCombo Errors on Run

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Nebula DateChooserCombo Errors on Run

Postby Jonah Bron » Wed Nov 03, 2010 10:51 am

Hello, world!

First, I am really loving WindowBuilder. Before, I was doing it by hand, and that wasn't very efficient.

Okay. Problem. Whenever I put a DateChooserCombo into any window, it works fine if I click the test/preview button. I click the calendar button, and it comes up just fine. But, If I compile and run the actual program, it gives me a very long error if I click the calendar button, with apparently no errors in my actual program. Everything works fine, but it dies if I click the button. Whether you need it or not, here's the error:

Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jface/layout/GridLayoutFactory
   at org.eclipse.nebula.widgets.datechooser.DateChooser.createHeader(DateChooser.java:592)
   at org.eclipse.nebula.widgets.datechooser.DateChooser.createContent(DateChooser.java:533)
   at org.eclipse.nebula.widgets.datechooser.DateChooser.<init>(DateChooser.java:323)
   at org.eclipse.nebula.widgets.datechooser.DateChooserCombo.createPopupContent(DateChooserCombo.java:177)
   at org.eclipse.nebula.widgets.datechooser.AbstractCombo.createPopup(AbstractCombo.java:403)
   at org.eclipse.nebula.widgets.datechooser.AbstractCombo.dropDown(AbstractCombo.java:494)
   at org.eclipse.nebula.widgets.datechooser.DateChooserCombo.dropDown(DateChooserCombo.java:226)
   at org.eclipse.nebula.widgets.datechooser.AbstractCombo.buttonEvent(AbstractCombo.java:294)
   at org.eclipse.nebula.widgets.datechooser.AbstractCombo$1.handleEvent(AbstractCombo.java:125)
   at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
   at TestWindow.open(TestWindow.java:33)
   at TestWindow.main(TestWindow.java:18)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.layout.GridLayoutFactory
   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
   ... 15 more


Test case: create a new window, insert a DateChooserCombo, run, click calendar button. When run in debug mode, it stops when the calendar button is pressed, and opens org.eclipse.swt.widgets.EventTable. When resume is clicked, it dies and gives the error. Does it work for you?

Thanks for the help!
Jonah Bron
 
Posts: 4
Joined: Wed Nov 03, 2010 10:12 am

Re: Nebula DateChooserCombo Errors on Run

Postby Eric Clayberg » Wed Nov 03, 2010 12:54 pm

I tried that and it worked just fine for me.

If I had to guess, it looks like a classpath issue.

Do you have the Eclipse JFace plugin on your classpath?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Nebula DateChooserCombo Errors on Run

Postby Jonah Bron » Wed Nov 03, 2010 2:10 pm

Thanks for the reply. Hm, how do I check? I tried googling it, but no joy.

P.S., looks like you're one of only two people on here answering questions!
Jonah Bron
 
Posts: 4
Joined: Wed Nov 03, 2010 10:12 am

Re: Nebula DateChooserCombo Errors on Run

Postby Jonah Bron » Wed Nov 03, 2010 2:31 pm

Never mind, thanks very much for your help. I found out how to do it here:

http://wiki.eclipse.org/index.php/JFace ... ce_Project

For anybody experiencing this problem, if you already have SWT installed, skip the installing part and go straight up to adding the variable to project org.eclipse.swt.

Thanks again!
Jonah Bron
 
Posts: 4
Joined: Wed Nov 03, 2010 10:12 am

Re: Nebula DateChooserCombo Errors on Run

Postby Eric Clayberg » Wed Nov 03, 2010 5:32 pm

Jonah Bron wrote:looks like you're one of only two people on here answering questions!

Actually, I'm just the front man ;-)

I have an entire Google team behind me doing all of the hard work and feeding me any answers that I don't know.

Any names that you see show up in red are also members of our team.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Nebula DateChooserCombo Errors on Run

Postby Jonah Bron » Thu Nov 04, 2010 9:32 am

That makes it easy on you...

Thanks again :)
Jonah Bron
 
Posts: 4
Joined: Wed Nov 03, 2010 10:12 am

Re: Nebula DateChooserCombo Errors on Run

Postby Eric Clayberg » Thu Nov 04, 2010 12:16 pm

Jonah Bron wrote:That makes it easy on you...

...easier... ;-)
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron