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.

Author: Meztira Daizuru
Country: Guadeloupe
Language: English (Spanish)
Genre: Career
Published (Last): 26 November 2016
Pages: 347
PDF File Size: 17.23 Mb
ePub File Size: 10.23 Mb
ISBN: 746-7-93858-398-9
Downloads: 59436
Price: Free* [*Free Regsitration Required]
Uploader: Samumi

Can be used in an extension element to denote the parts contained in a component-extension. By default they run in the same sandbox as applets, with several minor extensions like allowing to load and save the file that is explicitly selected by the user through the file selection dialog.

As no permissions are requested, the code will run in a sandbox. This table does not include all possible contents of the JNLP file. Only one description element of each kind can be specified.

java – How to specify a JRE range in jnlp file? – Stack Overflow

The main-class attribute is psecification the name of the Applet class without the. The check attribute indicates specificattion preference for when the JNLP Client should check for updates, and can have one of the three values: Description elements are optional. The icons are used to represents the application. I think what you want is: Can be used to describe the application’s preference for creating a shortcut to run online or offline.


The name of the class containing the public static void main String[] method of the application. An installer extension specificaation typically used to install platform specific native code that requires a more complicated setup than simply loading a native library into the VM.

October Learn how and when to remove this template message. The user will see a splash specificatioon that appears right before the application ever runs. It can be always, prompt-update, or prompt-run. The version attribute refers, by default, to a platform version specification version of the Java Platform Standard Edition. This means the resource does not have to be downloaded onto the client system before the application is launched.

The optional offline-allowed element indicates if the application can be launched offline.

Contains a single attribute, hrefwhich is a URL locating the home page for the Application. Specifies the operating system for which the resources element should be considered.

Java Web Start

Note that this version supports both spec version 1. If this element is not included, the application is run in the security sandbox. Java Web Start has support for launching Java applets.

Then imagine adding capabilities, such as distinguishing between versions of the same file depending on some local parameter, and so on. Application designers can enable jnp disable specificatuon feature within JNLP files. Remember that the JVM needs files copied locally on the file system in order to use them.

Can be used to group resources together so they will be downloaded at specitication same time. The following table describes the elements and attributes commonly used in JNLP files. The download attribute is used to control whether a resource is downloaded eagerly or lazily.


Requests that the application be run with all permissions. 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. The resources element has six different possible subelements: The JAR files that make up the applet are described using the resources element as for applications.

See Figure 1 for the details of the launching process. If several JREs are specified, this indicates a prioritized list of the supported JREs, with the most preferred version first. Some key benefits of this technology include seamless version updating for globally distributed applications and greater control of memory allocation to the Java virtual machine.

The application is asking that this content be included in its desktop integration.

A description element without a kind is used as a default value. Gilbert Le Blanc 38k 5 47 For more information about character encoding in the Java platform, see the Supported Encodings Guide. Can be used to describe the RIA’s specificcation for creating a shortcut to run online or offline.

The user does not have to remain connected to the Internet to execute the downloaded programs, because they execute from a locally maintained cache. The icons are used to represents the application.