Bug 18616 - Unable to start runtime-workbench
Summary: Unable to start runtime-workbench
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P1 critical (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-01 13:28 EDT by DJ Houghton CLA
Modified: 2002-06-01 21:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2002-06-01 13:28:12 EDT
build 2002-06-01 on Linux-motif and Linux GTK on RedHat 7.2.

- start Eclipse
- create new PDE project HelloWorld and use the template and all defaults
- select Run As -> Runtime workbench
- Runtime workbench won't start. Motif says it can't find the swt.jar from the
fragment. GTK says NoClassDefFoundError on an SWT class.

workaround:
- go to the launch configuration for HelloWorld
- select "Plugins and Fragments"
- check the box beside "Workspace plugins" (even though your project is already
checked)
- Run the runtime workbench
- works ok
Comment 1 DJ Houghton CLA 2002-06-01 16:40:25 EDT
Increased severity.
Comment 2 Dejan Glozic CLA 2002-06-01 21:10:35 EDT
Found the problem. When the launch config is initilized from the config tabs, 
the program argument is set to the default value that includes os/ws/arch 
variables. Launch Config Shortcut that has been recently added (Run As->Run-
time Workbench) didn't set this default value. On Windows, we are able to 
launch without the variables, but on other platforms, they are required (SWT 
does not know what to do otherwise).

The fix is trivial: use the same method 'getDefaultProgramArguments()' from 
main config tab to initialize shortcut launch configuration.