|
Re: Starting Eclipse from Java [message #106886 is a reply to message #106868] |
Wed, 26 March 2008 17:46 |
Eclipse User |
|
|
|
Originally posted by: frank.traenkle.online.de
In the meantime I have digged further into this. Now I am using
org.eclipse.core.runtime.adaptor.EclipseStarter. But the behavior is still
the same. I get the very same exception on the third iteration.
Here is the new example code.
Thanks
Frank
--
package gt.eclipsestarter;
public class Starter {
/**
* @param args
*/
public static void main(String[] args) {
try {
for (int i = 0; i < 3; ++i) {
System.err.println("Starting Eclipse number " + i);
org.eclipse.core.runtime.adaptor.EclipseStarter
run(new String[] {"-noExit",
"-configuration",
"C:/tmp/test.helloworld/eclipse/configuration" },
null);
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown();
System.err.println("Eclipse number " + i + " started");
}
} catch (Throwable e) {
System.err.println(e.getMessage());
}
}
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06951 seconds