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: Moogurisar Kagam
Country: Burma
Language: English (Spanish)
Genre: Education
Published (Last): 27 May 2011
Pages: 243
PDF File Size: 17.54 Mb
ePub File Size: 7.17 Mb
ISBN: 530-2-47270-584-3
Downloads: 51325
Price: Free* [*Free Regsitration Required]
Uploader: Majora

Sun provides all the details of the syntax element definitions, schema, and so on on its Web site. The name of the class containing the public static void main String[] method of the application.

The Java 2 SE platform includes support for loading classes from a server specified by a URL, running code in a secure environment sandboxand code signing. If you don’t know about XML, try this site: JNLP consists of a set of rules defining how exactly to implement the launching mechanism. Describes the name of a part that can be expected to be found specifiation the extension. The user specificatuon not have to remain connected to the Internet to execute the downloaded programs, because they execute from a locally maintained cache.

This class may be loaded first and used to indicate the progress of other resources being downloaded and verified. Can be used in an extension element to denote the parts contained in a component-extension.

Currently defined platform versions are 1. The offline-allowed element also controls how Java Web Start checks for an update to an application. A richer client environment at runtime. Web Start can also launch unmodified applets that are packaged inside.

Structure of the JNLP File

The main-class attribute is used instead of the code attribute. Each argument contains in order an additional argument to be passed to main. The default value is “1. 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. A secure deployment solution. The user is prompted to accept the certificate and agree to specifiation the application.


Defines a system property that will be available through the System.

The shortcut element can contain the optional online specificatiion, and the two optional sub-elements, desktop and menu. The application, however, must be run online. The download attribute is used to control whether a resource is downloaded eagerly or lazily.

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. You will see this file better in the second article of this tutorial. The download attribute is used to control whether a resource is downloaded eagerly, lazily, or contains a custom progress implementation. The application is responsible for doing the actual call to System. The java-vm-args attribute jnll the j2se element specifies a preferred set of virtual machine arguments to use when launching java.

Requests that the RIA be run with a permission set that meets the security specifications of the J2EE application client environment. A resource definition can be restricted to a specific operating system, architecture, or locale using the osarchand locale attributes. Sun designed most of these services with the aim of allowing carefully controlled access to resources such as files and the system clipboard while restricting the application to authorized operations.

That would be great. Indicates the downloadable size of the jar file in epecification. Unsourced material may be challenged and removed.

Versioning and incremental updates. One important element of a successful application epecification is distribution: Denotes this is the jnlp jnpp for a component extension. And if an update is found, the new application will be downloaded and launched. A launcher application, such as a browser helper application, that interprets the above encoding and launches Java based applications. A URL pointing to where more information on this application can be found.

Related Articles  FURSE GUIDE TO BS EN 62305 PDF

For a complete description of the format, refer to the specification. The optional shortcut element can be used to indicate an application’s preferences for desktop integration. Read the discussion of the resources element later for a full discussion of the os attribute. Who will configure the JVM to launch your application this way?

What Is JNLP All About? | A JNLP Tutorial: Part 1—An Introduction to JNLP | InformIT

Specifies the architecture for which this information element should be considered. Specifies the architecture for which the resources element should be considered.

Native libraries would typically be included in a resources element that is geared toward a particular operating system and architecture. If this element is included, either the offline-allowed element specirication also be included, speccification the href attribute must be set for the jnlp element.

An indicator as to the type of description. The example shows the basic outline of the document. The JNLP client is an application that runs locally on the client machine. Some Java programs may need some platform-specific support for running. The os attribute contains a list of operating system names for a resource. 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.

It can have one of the jmlp values:. After having introduced a little taste of the JNLP syntax, you turn to its general mechanism. The resources element is used to specify all the resources, such as Jnlo class files, native libraries, and system properties, that are part of the application.