Using JAR parameters in JNLP file

Ricardo-san

New Member
I have a question how to run JAR files with the parameters using a JNLP protocol . For example, to properly run the selenium-server-standalone-2.21.0.jar package I call it as: \[code\]selenium-server-standalone-2.21.0.jar -timeout 60000 -trustAllSSLCertificates -port 5555 \[/code\]When I add these parameters as: \[code\]<jar href="http://stackoverflow.com/selenium-server-standalone-2.21.0.jar -timeout 60000 -trustAllSSLCertificates -port 5555"/>\[/code\]I'm getting error - no such file found. I guess that these parameters are treated as part of the file name and for this reason I got this error. Where can I place the parameters for the call JAR package in XML below.\[code\]<?xml version="1.0" encoding="UTF-8"?><jnlp spec="1.0+" codebase="http://test.com/"><information> <title>Selenium-Server-Standalone-2.21.0</title> <vendor>ESKY Testers Toolkit</vendor> <homepage href="http://www.esky.pl/"/> <description>starts selenium server on client machine</description></information><security> <all-permissions/></security><resources> <j2se version="1.4+"/> <jar href="http://stackoverflow.com/selenium-server-standalone-2.21.0.jar"/></resources><application-desc main-class="org.openqa.selenium.server.SeleniumServer"/></jnlp>\[/code\]
 
Back
Top