Eclipse version: Indigo
1. RCP 调试方法:
plugin.xml -> Overview 界面 -> Testing 区域下的 Launch an Eclipse application in Debug mode
或
plugin.xml -> 任何界面 -> 标题栏右侧的 debug 图标 -> Launch an Eclipse application in Debug mode
2. RCP 引用外部lib:
plugin.xml -> Runtime 界面 -> Classpath 区域下进行编辑
3. RCP调试时异常:
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (141).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
...
解决:JDK改用1.6就OK了。