Java thousand asked _08jdk detailed (010) _java, JAVAW, javaws what is the difference

Source: Internet
Author: User

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:

    1. -verbose
      Enable verbose output.

    2. -offline
      Run the application in offline mode.

    3. -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:

    1. -viewer
      The cache Viewer is displayed in the Java Control Panel, and the operating system automatically opens a viewer.

    2. -clearcache
      Remove all applications that are not installed from the cache.

    3. -uninstall
      Remove all applications from the cache.

    4. -uninstall Jnlp-file
      Deletes the specified application from the cache.

    5. -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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.