Open Ashark opened 4 years ago
Hmmm. I needed the -wait option on a predecessor script of this tool. Without -wait the script would start the cleanup process deleting the downloaded files before the java tool was correctly started...
I'll need to have a look what's going on here. Thank you for the report though.
Hi @Ashark,
so I looked a little bit more into javaws, now that Oracle has officially deprecated it. :-(
What provides your javaws binary on Arch? Is it IcedTea? Which version do you use?
Hi. Yes, javaws is provided by icedtea-web package. I am using version 1.8.3-2
Hi, @ixs, thank you for this project!
I am on archlinux, and I have problem launching kvm_x9.py script. It contains this line:
subprocess.call(['javaws', '-J-Djava.security.properties=java.security', '-wait', 'viewer.jnlp'])
and I got the following error in terminal:netx: Invalid argument: net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [-wait, viewer.jnlp]
But when I remove that "-wait" argument, and run it as:
subprocess.call(['javaws', '-J-Djava.security.properties=java.security', 'viewer.jnlp'])
then kvm launches normally.What was the purpose of adding it? I guess, that you wanted to keep jnlp file while application is running? Seems like it is not needed. I googled that option and found a man page that says "-wait: If specified, the javaws process will not exit until the application exits. This option does not function as described on Windows platforms." But that page seems to apply for javaws 1.5.0. In archlinux i have installed icedtea-web 1.8.3, and it has no such option (I looked in man and in --help).
So, "-wait" parameter probably should be just removed.