Starting Eclipse from Java [message #106868] |
Wed, 26 March 2008 13:45  |
Eclipse User |
|
|
|
Hi,
I need to start Eclipse from another Java application. The JVM shall be
shared with the other application.
I need to frequently start and shut down Eclipse. The first two times this
works fine. But the third time, I get a UnsatisfiedLinkError in
org.eclipse.core.runtime.adaptor.EclipseStarter line 176 with the detailed
message:
no swt-win32-3349 or swt-win32 in swt.library.path, java.library.path or
the jar file
The Eclipse version is Version: 3.3.2 Build id: M20080221-1800 on Windows
XP and Sun jdk-1.5.0_15.
The only referenced jar of the example code below is
org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
Thanks for help.
Frank
Here is the example code:
--
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.equinox.launcher.Main
main(new String[] { "-noExit" });
System.err.println("Eclipse number " + i + " started");
}
} catch (Throwable e) {
System.err.println(e.getMessage());
}
}
}
-- end of example code
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04616 seconds