IcedTea-Web icon indicating copy to clipboard operation
IcedTea-Web copied to clipboard

IcedTea-Web not interpreting javaws command line

Open atfield90 opened this issue 2 years ago • 3 comments

Hi Everyone,

i have a jnlp application which calls another jnlp application and tries to pass an argument using the -open command. Basically the command used is:

javaws -open "C:\Users\lnugnes001\Desktop\PWCAABQ00000008_1398.dcmnoDcm" https://jws.agenziaentrate.it/jws/dichiarazioni/2020/ExecCIR20.jnlp

The -open "C:\Users\lnugnes001\Desktop\PWCAABQ00000008_1398.dcmnoDcm" should be passed to https://jws.agenziaentrate.it/jws/dichiarazioni/2020/ExecCIR20.jnlp JNLP as stated in Oracle documentation: https://docs.oracle.com/javase/7/docs/technotes/tools/share/javaws.html

What happens is that the command is not interpreted in the right way and the argument is not passed.

Here's the error log:

"failed to launch net.sourceforge.jnlp.LaunchException: No local file 'C:\Program Files\IcedTeaWeb\WebStart\bin-open' found and failed to create an URL from -open at net.sourceforge.jnlp.runtime.Boot.locationToUrl(Boot.java:392) at net.sourceforge.jnlp.runtime.Boot.launch(Boot.java:355) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:335) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:73) at java.security.AccessController.doPrivileged(Native Method) at net.sourceforge.jnlp.runtime.Boot.runMain(Boot.java:279) at net.sourceforge.jnlp.runtime.Boot.mainWithReturnCode(Boot.java:132) at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:114) Caused by: java.net.MalformedURLException: no protocol: -open at java.net.URL.(URL.java:611) at java.net.URL.(URL.java:508) at net.sourceforge.jnlp.runtime.Boot.locationToUrl(Boot.java:386) ... 7 more"

Is there anyway we can fix this? Can you point me in the right direction or fix the problem?

Thanks,

Leonardo

atfield90 avatar May 17 '22 09:05 atfield90

IcedTeaWeb is offering the -arg command line argument which allows to pass arguments to the JNLP file.

sclassen avatar May 17 '22 10:05 sclassen

So that would be something like: javaws "C:\Users\lnugnes001\Downloads\ExecCIR20.jnlp" -arg "C:\Users\lnugnes001\Desktop\PWCAABQ00000008_1398.dcmnoDcm"

right? How should I translate the -open into -arg?

Thanks

atfield90 avatar May 17 '22 15:05 atfield90

using the -arg command line i had to convert it like this:

javaws "C:\Users\lnugnes001\Downloads\ExecCIR20.jnlp" -arg -open -arg "C:\Users\lnugnes001\Desktop\PWCAABQ00000008_1398.dcmnoDcm"

Would you consider adding the -open command line into icedtea?

Thanks

Leonardo

atfield90 avatar May 25 '22 15:05 atfield90