|Launching Java code defined within a plug-in [message #666835]
||Fri, 22 April 2011 22:14
| Paul Glezen
Registered: July 2009
I'm writing a launch configuration that runs a Java class that I have defined in a |
plug-in. When I launch, it fails with a ClassNotFoundException since the launcher doesn't
know to look into my plug-in for code I would like it to execute.
The Java launcher is oriented toward launching code defined in the workspace (in terms of
specifying the classpath). But I'm not sure how I would add classes from my plug-in to
the classpath. Would I obtain a reference to the plug-in installation directory and
construct the classpath relative to the plug-in root?
Another idea I had was to not use the Java launcher at all. Rather, simply run the
plug-in code as part of the launch delegate implementation without starting up other
processes. (Is this how the XSLT launch delegate does it?)
Powered by FUDForum
. Page generated in 0.02440 seconds