Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Error with custom LaunchDelegate
Error with custom LaunchDelegate [message #724903] Tue, 13 September 2011 12:50
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009

I'm currently trying to add a new LaunchDelegate to eclispe as part of
my plugin-ins. I've done the implementation according to the Eclipse
corner article "We have lift-off"
So far, everything works fine, I can export the plug-ins and my
LaunchDelegate works. However, if trying to use them in an eclipse
instance, loading the plug-ins from the workspace leads to the error,
that the class, containing my main function (needed by the
LaunchDelegate configuration) cannot be found, as soon as my new
configuration is started via run(...), yet, up to this point my main
class can be found (e.g.: for deriving the class name x.y.z.Clazz for
properly setting up the launch configuration). To take the sample lines
from the article and make it a little more clear, in the beginning the
name of the main class is derived:

String mainTypeName = Clazz.class.getName() [adapted from String
mainTypeName = verifyMainTypeName(configuration);]

The above code actually works, the class is found and the name is
properly retrieved. However, later on in the code, as soon as the new
configuration is launched at:, launch, monitor);

I get the error that my main class cannot be found, although the fully
qualified name is proper and the class is residing inside the plug-in
and also can be found by other plug-ins having a dependency on exactly
this class.
Any suggestions why this happens? I know it's maybe not a crucial error,
however, it eases debugging a lot.

Thanks in advance!


Previous Topic:Changing Appearance of Properties View
Next Topic:Dependency problem on product export with 3.7
Goto Forum:

Current Time: Mon Jun 27 20:39:24 GMT 2022

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

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

Back to the top