Bug 174164 - malfunction with "SWT Library Options" including support for jface
Summary: malfunction with "SWT Library Options" including support for jface
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Orme CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 09:33 EST by Stefan Pietsch CLA
Modified: 2011-06-13 11:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Pietsch CLA 2007-02-14 09:33:28 EST
Build ID: M20060921-0945

Steps To Reproduce:
1. I have a project (named prj1) which includes the library "Standard Widget Toolkit (SWT)". The option "Include support for JFace library" is unchecked, because the project doesn't need it.
2. I have a second project (named prj2) which refers to prj1. Prj2 includes the library "Standard Widget Toolkit (SWT)", too. But the option "Include support for JFace library" is checked, because the project need it!
3. If I start prj2 with "run as SWT application" or "run as Java application" there are no entries for the jface jars in the classpath. Therefore I get an exception java.lang.NoClassDefFoundError.
4. If I check the option "Include support for JFace library"
for prj1 everything works fine.

More information:
Comment 1 Steve Northover CLA 2007-02-14 09:48:16 EST
Ok, 'Run as SWT Application' is no longer necessary.  Where does 'Include support for JFace library' exist in the UI?
Comment 2 Stefan Pietsch CLA 2007-02-14 10:18:42 EST
I know that 'Run as SWT Application' is no longer necessary. I would to inform, that I have tried it with 'Run as SWT Application' and 'Run as Java Application'.

If you edit build path in the project properties and select the tab 'Libraries' you can 'Edit' the library 'Standard Widget Toolkit (SWT)'. Then you get the 'SWT library options' which has a checkbox 'Include support for JFace library'.
Comment 3 Boris Bokowski CLA 2007-02-14 13:56:50 EST
(In reply to comment #1)
> Where does 'Include support for JFace library' exist in the UI?

I have no idea but would like to know too.  Is this coming from JDT UI?
Comment 4 Stefan Pietsch CLA 2007-02-15 03:08:39 EST
(In reply to comment #3)
> (In reply to comment #1)
> > Where does 'Include support for JFace library' exist in the UI?
> 
> I have no idea but would like to know too.  Is this coming from JDT UI?
> 

I found this in the downloaded base installation 'eclipse-SDK-3.2.1-win32.zip'. I need no additional installation.
Comment 5 Steve Northover CLA 2007-02-15 09:02:37 EST
OK, now I know what is going on.  The bug is VE-SWT, not Platform-SWT.