JFace Application does not start

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

JFace Application does not start

Postby tagewerk » Sat Oct 04, 2003 2:33 pm

Hi,
first of all, I think you made a good job with swt-designer plugin. Working with it makes a lot of fun. Its realy easy to use. :D
But now, I'am facing a problem. i try to build an app like the JFace example on IBM developerworks (Adrian Van Emmenis). I used the wizard to generate a JFace Application Window and integrated a TreeViewer. After generating ContentProvider and LabelProvider I tried out the app and got the following error:

java.lang.NoClassDefFoundError: org/eclipse/core/internal/boot/DelegatingURLClassLoader
at org.eclipse.core.runtime.Platform.run(Platform.java:420)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1263)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:338)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:321)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:307)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:753)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:796)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:744)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:983)
at myApp.MyJFaceAppWindow.createContents(MyJFaceAppWindow.java:90)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at myApp.MyJFaceAppWindow.run(MyJFaceAppWindow.java:112)
at myApp.MyJFaceAppWindow.main(MyJFaceAppWindow.java:125)
Exception in thread "main"

:?:

I also used to test this with a tableViewer, but ist alsways the same: the app crashes while trying to set the input like this:

treeViewer.setInput(new Object());

Any ideas?

PS : I am using Eclipse Version: 3.0.0, Build id: 200308281813

jh
a CRAY is only a computer...
... that runs an endless job in just 4 hours
tagewerk
 
Posts: 4
Joined: Sat Oct 04, 2003 2:08 pm
Location: Bonn, Germany

Postby Eric Clayberg » Sun Oct 05, 2003 5:31 am

I also used to test this with a tableViewer, but ist alsways the same: the app crashes while trying to set the input like this:

treeViewer.setInput(new Object());

Any ideas?


Not right away. Can you post the code for a small example that will reproduce the problem? That will allow us to see the problem in context and diagnose it.
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

Postby tagewerk » Mon Oct 06, 2003 4:31 am

Hi Eric,

i found out that my application is missing a jar archive.
I included the following jars In <properties><java puild path>

boot.jar
jface.jar
swt.jar
runtime.jar
workbench.jar

the archive boot.jar contains the missing class

org/eclipse/core/internal/boot/DelegatingURLClassLoader

After that, my code runs properly.


Thanks for your help..

Jan-Holger
a CRAY is only a computer...
... that runs an endless job in just 4 hours
tagewerk
 
Posts: 4
Joined: Sat Oct 04, 2003 2:08 pm
Location: Bonn, Germany


Return to SWT Designer

Who is online

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