Community
Participate
Working Groups
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
Increased severity.
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.