jeudi 8 mai 2014

« la classe JavaLaunchHelper est loacted dans deux endroits... » s'affiche lors du lancement de java web start sous mac 10.8.x - Stack Overflow


"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();


"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();

Related Posts:

0 commentaires:

Enregistrer un commentaire