kvm-cli icon indicating copy to clipboard operation
kvm-cli copied to clipboard

javaws "-wait" option unrecognized

Open Ashark opened this issue 5 years ago • 3 comments

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.

Ashark avatar Apr 24 '20 22:04 Ashark

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.

ixs avatar May 01 '20 01:05 ixs

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?

ixs avatar Jul 06 '20 12:07 ixs

Hi. Yes, javaws is provided by icedtea-web package. I am using version 1.8.3-2

Ashark avatar Jul 06 '20 12:07 Ashark