Click to enter _ more _java thousand ask
1, Java, JAVAW, javaws what is the difference
Java, JAVAW, javaws These three are the JDK comes with three tools, all under the Jdk/bin path, these three tools are to start Java applications exist, the specific difference is as follows:
Java
The Java command, the executor of the Java application, executes the application log and then console console displays output and error messages.
Read more about Java commands here: how Java programs work
JAVAW
JAVAW, like Java, is the executor of a Java application, unlike the console console that does not display output and error messages, and instead uses text to record the information. It is primarily used to launch applications based on the GUI (graphical user Interface, graphical interface for users).
Javaws
Java Web Start, which is used to start a project that is described by the web. We need a JNLP file (Java network launching Protocol,java Web execution protocol file) to launch the app with Javaws JNLP. The JNLP file describes the URL of the app, the basic information about the application (app name, version, vendor, app icon, etc.), the necessary system environment, and so on.
Read the JNLP file here: [What is the JNLP file][3]
It first downloads the app and launches it through the URL in the Jnlp file, which is a useful resource-fetching command, with centralized control and updates to ensure that all users are using the latest apps. When the application is called, it is cached on the local computer. Each time it is started, it checks for updates.
The following syntax is used:
Javaws [Run-options]
Javaws [Control-options]
The parameters are described as follows:
Run-options
Command-line run-time options, multiple parameters allow no order. Direct execution of Javaws will show all operations, common as follows:
-
-verbose
Enable verbose output.
-
-offline
Run the application in offline mode.
-
-system
Run the application only from the system cache.
Jnlp
The path to the JNLP file.
Control-options
command-line control options, multiple parameters allow no order. The following are common:
-
-viewer
The cache Viewer is displayed in the Java Control Panel, and the operating system automatically opens a viewer.
-
-clearcache
Remove all applications that are not installed from the cache.
-
-uninstall
Remove all applications from the cache.
-
-uninstall Jnlp-file
Deletes the specified application from the cache.
-
-import [Import options] Jnlp-file
Import the specified application into the cache with the following import options:
-silent: Import in silent mode (user interface not present)
-system: Importing an application into the system cache
-codebase: Retrieving resources from a given code base
-shortcut: Install shortcuts as a user accepts prompts
-association: Install the association as a user accepts prompts
Java thousand asked _08jdk detailed (010) _java, JAVAW, javaws what difference