Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316592

Summary: Import, plug-ins and fragments damages freshly created plug-in (redundant Bundle-ClassPath)
Product: [Eclipse Project] PDE Reporter: Konstantin Spirov <kspirov>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Konstantin Spirov CLA 2010-06-11 07:45:27 EDT
Build Identifier: 20100218-1602

After doing an "import, plug-ins and fragments" on freshly created plug-in, new line "Remove Bundle-ClassPath:" appears in manifest.mf. This causes ClassNotFoundException. The removing of the line solves the problem.

Reproducible: Always

Steps to Reproduce:
Eclipse for RCP/Plug-in Developers
Build id: 20100218-1602

1. Create a simple project
1.1. New : plug-in project
1.2. Enter project name (xxxx), create it in alternative workspace folder (not in default location - c:\tmp\xxxx)
1.3. Next
1.4. Plug-in with multi-page editor 
1.6  finish
1.7. Run as eclipse application, test the app works (for example open new Sample Wizard, multi-page Editor File )

2.1.Remove your project without deleting its content on disk. 

3. Imported project doesn't work
3.1. Go to "Import, plug-ins and fragments"
3.2. Directory, point your alternative workspace directory (c:\tmp)
2.3. Select your project (xxxx) and click add
2.4. Finish, yes to all
2.5. Run as eclipse application,
2.6 test the app doesn't work (for example open new Sample Wizard, multi-page Editor File 
will give The selected wizard could not be started.
  Plug-in xxxx was unable to load class xxxx.wizards.SampleNewWizard.
  xxxx.wizards.SampleNewWizard
)


4.0. Solve the problem 
4.1. Open manifest.mf
4.2. Remove Bundle-ClassPath: xxxx
4.3. Repeat the scenario from 2.6 - it will work.
Comment 1 Darin Wright CLA 2010-06-11 09:26:35 EDT
Rather than importing the project using "Import > Plug-in Development > Plug-ins and Fragments" use "Import > General > Existing Projects into Workspace". The PDE project is not packaged as a bundle - it is a workspace project, and the shape of the project is not the same as a runtime bundle.

This use case you have outlined is not a supported scenario.