|NullPointerException when trying to get debug plug-in instance [message #530160]
||Wed, 28 April 2010 13:11
Registered: April 2010
I am trying to run a configuration programmatically, and came across the article "Launching Java Applications Programmatically" at http://www.eclipse.org/articles/Article-Java-launch/launchin g-java.html. Basically what I want to do it to run a GUI (standard Java application) that will run an Eclipse configuration (created using the "Run Configurations" dialogue) when a button is pressed.
The first step to run the configuration is to retrieve it. I have tried to use DebugPlugin.getDefault().getLaunchManager() so I can get all the configurations of my type and then find the configuration in which I'm interested using its name (as suggested by the previous article). The problem is that DebugPlugin.getDefault() returns a NullPointerException because the fgDebugPlugin variable seems to stay as null.
I have been trying to find a solution but so far I didn't find anybody with this same problem. Maybe I am doing all wrong and this is not the way to run a configuration the way I intend? Maybe I need to do something first to create the debug plug-in instance?
Any help will be very much appreciated.
Powered by FUDForum
. Page generated in 0.02643 seconds