Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Eclipse 3.2.2 config for SWT / JFace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Eclipse 3.2.2 config for SWT / JFace" Watch "Eclipse 3.2.2 config for SWT / JFace" New topic

Eclipse 3.2.2 config for SWT / JFace

Olivier Cleyman

Joined: May 29, 2005
Posts: 14

I've almost never build a java application using GUI.
Always did Web Application.

So I'm trying to do my first java SWT / JFace app using Eclipse.

I did find quite a lot of tutorial really helpful but I still have problems configuring my project in Eclipse 3.2.2!

Can some one tell which specific jar in need to include in my project JAVA BUILD PATH in order to be able to run my SWT / JFace properly?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38036
As long as you have the appropriate JRE set up in the Eclipse options, and the compatibility options set up correctly, you oughtn't to need a separate .jar at all.
Olivier Cleyman

Joined: May 29, 2005
Posts: 14
I know that it is supposed to be quite straightforward....
But it doesn't work for me...

Can you detail me your JRE setup?

I have red somewhere that I needed to include jars in my project java build path.

The problem is that it is an old version of Eclipse and now the jars don't have the same name anymore.
So I put thoses ones...


My classes compiles, but there are problems at runtime.

BTW my installed JRE is JRE1.6.0

Thanks a lot for your help
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38036
Those aren't .jars for your project build path. If anything, they are .jars which underpin Eclipse. If your project compiles at all, that suggests it has all its .jars already.

I would suggest you repeat the download of Eclipse. You don't actually need to install it on Windows, since it is an executable .jar. All I did was to un-zip the downloaded file into an appropriate folder (C:\Program Files\Eclipse\Eclipse_3.2.2 will do nicely), then open the file with Windows Explorer. Find the "eclipse.exe" icon which is round and blue, R-click it and drag it onto your desktop. Then click "copy here" or "make shortcut here." You get an Eclipse icon on the Windows desktop which will start Eclipse when double-clicked.

I think this thread ought to be transferred to the IDEs forum . . .
Olivier Cleyman

Joined: May 29, 2005
Posts: 14

I just freshly installed Eclipse and I do know how to do it!

But if you don't include at least the SWT and JFace related jar in the project classpath it won't compile at all! I mean ma java classes with SWT and JFace code will not compile...the rest is fine of course.

That is why I added them... and that is also what all the tutorial on the subject says...

But in my case, and I don't know why, It will crash at runtime.

Anyway thanks a lot!
Suman Sharma
Ranch Hand

Joined: May 16, 2005
Posts: 72
Hi Olivier,
In Eclipse 3.1, I took following steps to configure Java Build Path to use SWT/JFace in one program.

Right click on .java program
select Build Path -> Configure Build Path
click on Libraries tab
click on Add External Jars

Then select 2 plugins:


These get added to your libraries and your code should work.

I am looking for a online tutorial on SWL/Jface (not from help in eclipse environment). If you know about it, please let me know.

Thank you.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38036
Sorry for my mistake about installation.
Olivier Cleyman

Joined: May 29, 2005
Posts: 14
Thanks for the info!

I don't know why this still doesn't work with
org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar and

My SWT classes compiles but don't run...
My SWT JFace classes don't compile at all because the above jars don't contain JFace related classes.

For SWT I downloaded et install it as a Java project.
Then In my own Project I relate to this SWT project and then it does compile and run....

So SWT is OK now but not JFace....

For the tutorials, I just had a look at

But I'm reading Manning SWT/JFace in action.
I agree. Here's the link:
subject: Eclipse 3.2.2 config for SWT / JFace
Similar Threads
Download Just JFace
To anyone who has tried using Eclipse SWT...
SWT/JFace newbie
Convert an existing text box into a combo box
Q regarding future of SWT & JFace