Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

SWT/JFace TreeViewer

Thread view: 
CABA - 20 Nov 2003 13:53 GMT
Hi,

I try recently the graphic SWT / JFace library.
I use the JFace TreeViewer as it is described in this IBM's article:
http://www-106.ibm.com/developerworks/opensource/library/os-ecgui1/

I have two problems :

1. they give 5 jar files to include, but I find only 4 files. Indeed the
directory ..../eclipse/plugins/org.eclipse.runtime_2.1.0 does not exist!
Has anybody this directory?

2. The missing .jar file does not prevent me from compiling their TreeViewer
example, but during the execution, I obtain the following error:

java.lang.NoClassDefFoundError:
org/eclipse/core/internal/boot/DelegatingURLClassLoader
   at org.eclipse.core.runtime.Platform.run(Platform.java:413)
   at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
1271)
   at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeView
er.java:320)
   at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:3
03)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
   at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeView
er.java:289)
   at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:7
29)
   at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVie
wer.java:801)
   at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer
.java:721)
   at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
   at
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:99
1)
   at TestJFace.createContents(TestJFace.java:21)
   at org.eclipse.jface.window.Window.create(Window.java:302)
   at org.eclipse.jface.window.Window.open(Window.java:552)
   at TestJFace.main(TestJFace.java:32)
Exception in thread "main"

Nevertheless, my program is exactly written like in the IBM's example, an
idee? I don't find the class DelegatingURLClassLoader !!!

Thanks

CABA
Andreas Schmidt - 21 Nov 2003 00:08 GMT
> Hi,
>
[quoted text clipped - 3 lines]
>
> I have two problems :

As noone is answering here, I think you should ask in one of the the
news.eclipse.org newsgroups...

Andi
Yvon Thoraval - 21 Nov 2003 07:47 GMT
> As noone is answering here, I think you should ask in one of the the
> news.eclipse.org newsgroups...

I'm also interested however the server asks for a username-pwd...
how could i get one ?
Signature

Yvon Thoraval

Yvon Thoraval - 21 Nov 2003 08:24 GMT
> I'm also interested however the server asks for a username-pwd...
> how could i get one ?

i found it...
Signature

Yvon Thoraval

talkabout - 09 Jan 2004 16:34 GMT
Caba

I faced the same problem. Have you got the answer ?

Luciano
sinar-g - 12 Jan 2004 12:55 GMT
yup

you have to include eclipse/plugins/org.eclipse.core.boot_x.y.z/boot.jar in your classpath

gorm
CABA - 12 Jan 2004 15:05 GMT
Yes,

You have to include this five .jar files :

- boot.jar : org.eclipse.core.boot_2.1.2
- jface.jar : org.eclipse.jface_2.1.1
- runtime.jar : org.eclipse.core.runtime_2.1.1
- swt.jar : org.eclipse.swt.win32_2.1.2
- ui.jar : org.eclipse.ui_2.1.1

CABA

> Caba
>
> I faced the same problem. Have you got the answer ?
>
> Luciano


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.