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

Bug 313185

Summary: [examples] can't install/run debug.examples in host SDK
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2010-05-17 12:43:39 EDT
3.6 RC1

If you export & install the debug.core/ui examples into the SDK, the PDA debugger cannot be run from the host IDE since the launcher is set up to expect the PDA VM implementation to be in the "bin" output directory... You end up with class not found exceptions:

java.lang.NoClassDefFoundError: org/eclipse/debug/examples/pdavm/PDAVirtualMachine
Caused by: java.lang.ClassNotFoundException: org.eclipse.debug.examples.pdavm.PDAVirtualMachine
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.eclipse.debug.examples.pdavm.PDAVirtualMachine.  Program will exit.

We could re-packcage this, compiling the PDA VM & support classes into a separate jar that gets built with a ant script.
Comment 1 Pawel Piech CLA 2011-06-08 00:28:59 EDT
Dup

*** This bug has been marked as a duplicate of bug 276985 ***