Where to Start with Java Web Start, Page 2
JNLP File in Detail
The following is a typical .jnlp file that you would use for deployments:<?xml version="1.0" encoding="utf-8"?>
<--Demo JNLP file -->
< jnlp
codebase="http://yourUrl.com//webstart" href="myApp.jnlp">
<information>
<title>My Web Start Application</title>
<vendor>Vendor Name</vendor>
<description>Java Web Start Application</description>
<icon href="images/myApp.jpg"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4.2"/>
<jar href="jars/myApp.jar"/>
</resources>
<application-desc main-class="MyApp"/>
</jnlp>
The contents of this file should be sufficient for you to proceed with development. The sub-elements (information, security, and resources) are self-explanatory. They respectively convey information about the application (such as the Vendor, a brief description, etc.), security restrictions, and the resources that are available to the application context for execution.
The other notable elements operate as follows:
<application-desc main-class="MyApp">
<argument>argument-1</argument>
<argument>argument-2</argument>
</application-desc>
0 Comments (click to add your comment)
Networking Solutions
