Bug 18616

Summary: Unable to start runtime-workbench
Product: [Eclipse Project] PDE Reporter: DJ Houghton <dj.houghton>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Linux   
Whiteboard:

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.