This document describes the most commonly used elements of a JNLP file. For a complete description of the format, refer to the specification. The JNLP file is an. JSR – Java™ Network Launching Protocol and API Specification v 1 Java(TM) Network Launching Protocol (JNLP) Specification. In computing, Java Web Start is a framework developed by Sun Microsystems ( now Oracle) that . jnlp spec=”+” codebase=”” href=””> Launch applet with Web Start Foo Bar.
|Published (Last):||28 August 2014|
|PDF File Size:||4.76 Mb|
|ePub File Size:||3.45 Mb|
|Price:||Free* [*Free Regsitration Required]|
The following properties, as well as properties beginning with either “javaws. Each resource can be tagged with a version id and managed accordingly. The main-class attribute is used instead of the code attribute. A short statement about the application. Java Web Start has supported Pack since it first appeared, but initially this feature required server-side cooperation and a certain amount of expertise to set up. Legal values are one-line, short, and tooltip. Deployed applications can work even without a connection with the deployment server.
The optional install attribute can be used in a shortcut element to describe the application’s preference for being considered “installed”. The optional association element is a hint to the JNLP client that it wishes to be registered with the operating system as the primary handler of certain extensions and a certain mime-type. Can be used to indicate the RIA’s preference for putting a menu item in the user’s start menus.
Indicates an additional set of standard and non-standard virtual machine arguments that the application would prefer the JNLP Client to use when launching Java. Sun provides all the details of the syntax element definitions, schema, and so on on its Web site.
The preference for when the JNLP client should check for updates. For example, an os attribute value of “Windows” matches both “Windows Vista” and “Windows 7” operating systems.
Application designers can enable or disable this feature within JNLP files. It can contain any of speckfication following two sub-elements: The name of the class containing the public static void main String method spevification the installer.
This file describes the application requirements, code location, parameters and additional permissions if any. The user will see a splash screen that appears right before the application ever runs. Description elements are optional. The operating system for which this information element should be considered. Describes an icon that can be used to identify the application to the user. Can be used to request enhanced permissions.
Imagine you could say “If the locale is ‘Chinese,’ use the input framework extension and those JAR files there.
A standard application speciification environment for web deployed applications. Contains a single attribute, hrefwhich is a URL locating the home page for the Application. The shortcut element can be used to indicate an application’s preferences for desktop integration. The name of the class containing the implementation of DownloadServiceListener, that may be used to indicate download progress.
There are some drawbacks as well, however:.
JNLP File Syntax
specificstion This specification will define a mime type and default extension for the above encoding. Can be used to group resources together so they will be downloaded at the same time. Indeed, you may have different types of JNLP files, depending on what they describe.
See Figure 1 for the details of the launching process. It can contain any of the following two sub-elements:.
If unlp wish to list an operating system whose name contains a space, use a backslash to indicate that the space is part of the operating system name. Web Start tool downloads all necessary resources and launches the application. Given a reasonably fast server connection, the latest version of the application will usually be run, but it is not guaranteed.
I can request an exact product version by including the href attribute. Each entry must contain a platform-dependent shared library with the correct naming convention, e. A JNLP file can contain multiple icon elements that differ by their kind attribute. Given a reasonably fast server connection, the latest version of the application will usually be run, but it is not guaranteed. Thus, it can typically be omited. So if JRE 1.
The version attribute refers, by default, to a specifixation version specification version of the Java Platform Standard Edition. The JNLP client is an application that runs locally on the client machine.
Can be used to indicate this extension may be downloaded eagerly or lazily.
Java Web Start
The shortcut sspecification can contain the optional online attribute, and the two optional sub-elements, desktop and menu. That would save a lot of coding effort and such installation problems are very commonand would allow developers to have a great number of new unimagined capabilities. Then imagine adding capabilities, such as distinguishing between versions of the same file depending on some local parameter, and so on.