What Is JavaWS Command Line Tool

Q

What Is JavaWS Command Line Tool?

✍: FYIcenter

A

JavaWS Command Line Tool is installed as part of Java SE JDK and JRE (Java Runtime Environment) to allows you to launch a Java application on the local machine with its code JAR file located remotely on the server machine.

If you have Java SE SDK or JRE installed, you can try the JavaWS command line tool in a command window:

>\fyicenter\jdk-1.8.0\bin\javaws.exe

You the following help infomation displayed:

Name
   javaws - Java Web Start launcher command

Usage: 
   javaws [run-options] <jnlp>
   javaws [control-options]

<jnlp>       This can be either the path of, or the Uniform Resource Locater (URL) 
             of the JNLP (Java Network Launching Protocol) file.

[run-options]

-offline     Run Java Web Start in offline mode.
-Xnosplash   Do not display the initial splash screen.
-open <arguments> 
             If specified, replaces the arguments in the jnlp file with -open <arguments>.
-print <arguments> 
             If specified, replaces the arguments in the jnlp file with -print <arguments>.
-online      Use online mode (default behavior).
-wait        If specified, the javaws process will not exit until the application 
             exits. This option does not function as described on Windows platforms.
-verbose     Display additional output.
-J<option>   Supply options to the VM.
-system      Run the application from the system cache only.

[control-options]
-viewer      Show the Cache Viewer in the Java Control Panel.
-clearcache  Remove all non-installed applications from the cache.
-userConfig <property name> 
             Clear the specified deployment property.
-userConfig <property name> <property value> 
             Set the specified deployment property to the specified value.
-uninstall   Remove all applications from the cache.
-uninstall <jnlp> 
             Remove the application from the cache.
-import [import-options] <jnlp> 
             Import the application to the cache.

[import-options]
-silent      Import silently (with no user interface).
-system      Import application to the system cache.
-codebase <url> Retrieve resources from the given codebase.
-shortcut    Install shortcuts as if user allowed prompt. This option has no effect 
             unless -silent option is also used.
-association Install associations as if user allowed prompt. This option has no 
             effect unless -silent option is also used.

 

Introduction of JavaWS and JNLP

⇒⇒FAQ for JavaWS (Java Web Start)

2017-10-16, 451👍, 0💬