"class JavaLaunchHelper is loacted in two places..." is shown when
launching java web start in mac 10.8.x
"Class JavaLaunchHelper is implemented on both /Library/Internet
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java and
Library/Internet
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib . One
of the two will be used. Which one is undefined." error is shown when
running the command(javaws "jnlp-file") in terminal in Mac 10.8.x with
latest jre 7 update 40
Any command execution with javaws shows the same error message and to
avoid this either of them specified in the path should be deleted(But its
not an user scenario)
Is there any other way to avoid this. Below is my code
final StringBuffer info = new StringBuffer();
final StringBuffer error = new StringBuffer();
final Process process = Runtime.getRuntime().exec(javaws
<jnlp-file>);
final StreamPumper outPumper = new
StreamPumper(process.getInputStream(), info);
final StreamPumper errPumper = new
StreamPumper(process.getErrorStream(), error);
outPumper.start();
errPumper.start();
process.waitFor();
outPumper.join();
errPumper.join();
No comments:
Post a Comment