[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.jdt] ILaunchConfiguration FileNotFound
|
- From: prlarry@xxxxxxxxxxx ( Larry)
- Date: Mon, 10 Aug 2009 15:42:16 +0000 (UTC)
- Newsgroups: eclipse.tools.jdt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I am getting a FileNotFoundException when trying to run the main function
in my example below. Can anyone tell me how to add the classpath to the
working copy configuration below? Or point me in the right direction.
I'm assuming that is my problem. Any help would be appreciated.
Thank you.
ILaunchManager manager = null;
ILaunchConfigurationType type = null;
ILaunchConfigurationWorkingCopy wc = null;
manager = DebugPlugin.getDefault().getLaunchManager();
String idjavaapp = IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION;
type = manager.getLaunchConfigurationType(idjavaapp);
wc = type.newInstance(null, "SampleConfig");
String attprojectname =
IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME;
String attmaintypename =
IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME;
wc.setAttribute( attprojectname, "MyProject");
wc.setAttribute( attmaintypename, "testplugin.dialogs.MainFrame");
ILaunchConfiguration config = wc.doSave();
config.launch(ILaunchManager.DEBUG_MODE, null);