<?xml version="1.0" encoding="utf-8"?> <!-- example JNLP file, not totally realistic --> <!-- no official DOCTYPE for 1.5 --> <!-- where the jnlp file lives on the web --> <jnlp spec="1.5+" codebase="http://www.mindprod.com/webstart" href="esper.jnlp" version="2.4"> <information> <title>Esperanta Tradukilo Vortope 2.4</title> <vendor>Canadian Mind Products</vendor> <homepage href="esper.html"/> <description>Word for word Esperanto to/from English translator.</description> <description kind="short">Looks up words on local and Internet Esperanto dictionaries.</description> <!-- hover help for this app. Tradukilo means translating tool in Esperanto --> <description kind="tooltip">Tradukilo</description> <!-- gif or jpg only, no pngs in 1.5. Transparency does not work. Rectangular icons will be badly stretched. --> <!-- relative to codebase --> <icon href="http://www.mindprod.com/webstart/espericon64.gif" width="64" height="64"/> <icon href="../splash.gif" kind="splash"/> <!-- allow app to run without Internet access --> <offline-allowed/> <!-- request that the JAWS app be hooked up as the official OS handler of a given file type --> <!-- note the plural extensions, but always a single value --> <association mime-type="application/rtf" extensions="rtf"/> <association mime-type="image/wavelet" extensions="wi"/> <!-- hints for setting up shortcuts --> <!-- Prefer a shortcut for online operation --> <shortcut online="true"> <!-- create desktop shortcut --> <desktop/> <!-- create menu item for this app under the major heading Esperanto --> <menu submenu="Esperanto"/> </shortcut> </information> <security> <all-permissions/> <!-- all-permissions requires the jars be signed --> </security> <resources> <!-- Acceptable JVMs in preferred order, best first --> <!-- Oracle JVM --> <java version="1.7.0_02" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m"/> <java version="1.7+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m"/> <java version="1.6.0_30" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m"/> <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m"/> <java version="1.5+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m"/> <!-- any vendor --> <java version="1.7+" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m" /> <java version="1.6+" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m" /> <!-- application code, load before launch. JNLP 1.6 main="true" indicates jar with main class --> <jar href="esper.jar" main="true" download="eager" size="31068"/> <!-- data dictionaries in compressed form, load as needed. --> <jar href="dicts.jar" main="false" download="lazy" size="99999"/> <!-- aux JNLP to describe the installer --> <extension name="Installer" href="esperinstaller.jnlp"/> <!-- set a -D system property --> <property name="flavour" value="strawberry"/> </resources> <!-- JNI native Sun .so code --> <resources os="SunOS" arch="sparc"> <!-- relative to codebase --> <nativelib href="lib/solaris/corelibs.jar"/> </resources> <!-- JNI native Windows .dll code --> <resources os="Windows" arch="x86"> <!-- relative to codebase -->nativelib href="lib/windows/corelibs.jar" /></resources> <!-- application class with main method --> <application-desc main-class="com.mindprod.esper.Esper"> <!-- command line arguments --> <argument>Esperanto</argument> <argument>English</argument> </application-desc> <!-- <applet-desc would go here for applet --> <!-- code run once on install to unpack dicts.jar as part of one-time install --> <!-- this has to go in a separate JNLP file from application-desc. --> <installer-desc main-class="com.mindprod.esper.Installer"/> </jnlp>