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: Grozshura Femi
Country: Canada
Language: English (Spanish)
Genre: Relationship
Published (Last): 23 October 2012
Pages: 65
PDF File Size: 4.73 Mb
ePub File Size: 13.88 Mb
ISBN: 808-8-46775-218-9
Downloads: 56864
Price: Free* [*Free Regsitration Required]
Uploader: Mazuhn

Structure of the JNLP File

This file describes the application requirements, code location, parameters and additional permissions if any. The working specification of the prototype could be used as the basis of a draft specification. A JNLP file can contain multiple icon elements that differ by their kind attribute. Spscification attribute must be 1. Contains a single attribute, hrefwhich is a URL locating the home page for the Application.

Arguments can be specified to speciication application by including one nnlp more nested argument elements. Retrieved from ” https: A standard encoding of the information needed to launch a Java application whose components are hosted by one or more web servers. A URL pointing to where more information s;ecification this application can be found. Defines a system property that will be available through the System. Click the parent link to view an element’s parent. 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.

Describes the name of a part that can be expected to be found in the extension. The optional offline-allowed element indicates if the application can be launched offline.

If this element is not included, the application is run in the security sandbox. A platform version will not normally contain a micro version number; e.

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

The browser helper application will include OS dependent C language code for spawning a Java VM process and for very limited communication with the spawned process. An installer extension is typically used to install platform specific native code that requires a more complicated setup than simply loading a native library into the VM.


Values can be always, prompt-update, or prompt-run. The association element must have the extensions and mime-type attributes. The format used in this release is that specified in JSR It is used by the Java Application Cache Viewer to point the user to a Web page where more information about the application can be found.

If the update check is not completed before the timeout, the application is launched, and the update check will continue in the background. On slow connections Pack gives a performance boost in application startup time and download time.

In addition, Java Web Start also supports launching applets by using the applet-desc element. The JNLP client parses this file, requests the resources specified jar fileswaits for the retrieval of all required resources, and then launches the application.

Can be used to describe the application’s preference for creating a shortcut to run online or offline. Specifies a JAR file that contains native libraries in it’s root directory.

Can be used to 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.

A nativelib element specifies a JAR file that contains native libraries. This section does not cite any sources. Email Required, but never shown. Important Web Start features include the ability to automatically download and install a JRE in the case where the user does not have Java installed, and for programmers to specify which JRE version a given program needs in order to execute.

Given a reasonably fast server connection, the latest version of the application will usually be run, but it is not guaranteed.

A specification of protocols and APIs that will enable Java applications to be deployed on the web. Description elements are optional. The kind attribute defines how the description should be used. Can be used to indicate an application’s preference for putting a menu inlp in the users start menus. The java-vm-args attribute of the j2se element specifies a preferred set of virtual machine arguments to use when launching java.


Optional width and height attributes can be used to indicate the size of the images. Can be used in an extension element to denote the parts contained in a component-extension.

The main-class attribute is used instead of the code attribute. A pointer to an additional component-desc or installer-desc to be used with this RIA. This support provides easy migration of existing code to Java Web Start. Jmlp run the following example, and try to modify it to your needs.

Java Web Start

This is similar to but not limited to specificatiom is provided for Java Applets, e. It can have one of the following values:. So if JRE 1. The os attribute contains a list of operating system names separated by spaces. Can be used to indicate the RIA’s preference for where to place the menu item.

The jar file will typically contain Java classes that contain the code for the particular application, but can also contain other resources, such as icons and configuration files, that are available through the getResource mechanism. Sign up or specificatino in Sign up using Google. Thus, if Java Web Start needs a description of kind shortand it is not specified in the JNLP file, then the text inlp the description without an attribute is used. It includes the original 1. Can be in one of the following formats: That would be great.

Each resource can be tagged with a version id and managed accordingly.

Last modified: February 22, 2020