Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javaws "-wait" option unrecognized #1

Open
Ashark opened this issue Apr 24, 2020 · 3 comments
Open

javaws "-wait" option unrecognized #1

Ashark opened this issue Apr 24, 2020 · 3 comments

Comments

@Ashark
Copy link

Ashark commented Apr 24, 2020

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.

@ixs
Copy link
Owner

ixs commented May 1, 2020

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
Copy link
Owner

ixs commented Jul 6, 2020

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?

@Ashark
Copy link
Author

Ashark commented Jul 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants