Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » eek!: can't find project using launcher :/
eek!: can't find project using launcher :/ [message #76531] Tue, 17 June 2003 13:24 Go to next message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

Hi,
I am having trouble using the help documentation to get a launcher
setup. I have the following code and a project named "testProject" but I
get this error:

org.eclipse.core.runtime.CoreException: Launch configuration TestConfig
references non-existing project testProject.

I am wondering why it cant find the project ? I have also tried giving it
the fully qualified path but it doesnt accept this. Any pointers would be
great ..thank you

public MyConstructor(){
super();
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type =
manager.getLaunchConfigurationType(IJavaLaunchConfigurationC onstants.ID_JAVA_APPLICATION);

try{
ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
"TestConfig");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJE CT_NAME,
"testProjectFolder");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_ TYPE_NAME,
"testProjectMainClass");
ILaunchConfiguration config = wc.doSave();
config.launch(ILaunchManager.RUN_MODE, null);

}
catch(CoreException e)
{
System.out.println(e);
}


B.C.
Re: eek!: can't find project using launcher :/ [message #78453 is a reply to message #76531] Thu, 19 June 2003 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel_nospam.enigmatec.net

bluecoder@elivefree.net (B.C.) wrote in news:bcnisa$qgk$1@rogue.oti.com:
You said that your project was called "testProject" yet you name it
"testProjectFolder" in the launch config. Is it anything to do with that?

Thanks, Dan

> Hi,
> I am having trouble using the help documentation to get a launcher
> setup. I have the following code and a project named "testProject" but
> I get this error:
>
> org.eclipse.core.runtime.CoreException: Launch configuration
> TestConfig references non-existing project testProject.
>
> I am wondering why it cant find the project ? I have also tried giving
> it the fully qualified path but it doesnt accept this. Any pointers
> would be great ..thank you
>
> public MyConstructor(){
> super();
> ILaunchManager manager =
> DebugPlugin.getDefault().getLaunchManager();
> ILaunchConfigurationType type =
> manager.getLaunchConfigurationType(IJavaLaunchConfigurationC onstants.ID
> _JAVA_APPLICATION);
>
> try{
> ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
> "TestConfig");
> wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJE CT_
> NAME,
> "testProjectFolder");
> wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_ TYPE_N
> AME,
> "testProjectMainClass");
> ILaunchConfiguration config = wc.doSave();
> config.launch(ILaunchManager.RUN_MODE, null);
>
> }
> catch(CoreException e)
> {
> System.out.println(e);
> }
>
>
> B.C.
>
>
Re: eek!: can't find project using launcher :/ [message #85566 is a reply to message #78453] Mon, 30 June 2003 11:57 Go to previous message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

Hi,
Sorry that was a typo in the post. It is still behaving the same no
matter what I try :/

Dan Gravell wrote:

> bluecoder@elivefree.net (B.C.) wrote in news:bcnisa$qgk$1@rogue.oti.com:
> You said that your project was called \"testProject\" yet you name it
> \"testProjectFolder\" in the launch config. Is it anything to do with that?

> Thanks, Dan

> > Hi,
> > I am having trouble using the help documentation to get a launcher
> > setup. I have the following code and a project named \"testProject\" but
> > I get this error:
> >
> > org.eclipse.core.runtime.CoreException: Launch configuration
> > TestConfig references non-existing project testProject.
> >
> > I am wondering why it cant find the project ? I have also tried giving
> > it the fully qualified path but it doesnt accept this. Any pointers
> > would be great ..thank you
> >
> > public MyConstructor(){
> > super();
> > ILaunchManager manager =
> > DebugPlugin.getDefault().getLaunchManager();
> > ILaunchConfigurationType type =
> > manager.getLaunchConfigurationType(IJavaLaunchConfigurationC onstants.ID
> > _JAVA_APPLICATION);
> >
> > try{
> > ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
> > \"TestConfig\");
> > wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJE CT_
> > NAME,
> > \"testProjectFolder\");
> > wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_ TYPE_N
> > AME,
> > \"testProjectMainClass\");
> > ILaunchConfiguration config = wc.doSave();
> > config.launch(ILaunchManager.RUN_MODE, null);
> >
> > }
> > catch(CoreException e)
> > {
> > System.out.println(e);
> > }
> >
> >
> > B.C.
> >
> >
Previous Topic:JDO plugin for eclipse
Next Topic:IWorkbenchPage.findEditor() returns null
Goto Forum:
  


Current Time: Sat May 31 09:35:08 EDT 2025

Powered by FUDForum. Page generated in 0.03099 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top