Here is an example of such a file. In fact, the following example is the one used on the french site in the section called ”exemples“. This file allows loading of the program that draws a dice in the 3D section. Explanation of the file’s contents will be given after the code.
<?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.5+" codebase="http://downloads.tuxfamily.org/xlogo/common/webstart"> <information> <title>XLogo</title> <vendor>xlogo.tuxfamily.org</vendor> <homepage href="http://xlogo.tuxfamily.org"/> <description>Logo Programming Language</description> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.4+"/> <jar href="xlogo.jar"/> </resources> <application-desc main-class="Lanceur"> <argument>-lang</argument> <argument>fr</argument> <argument>-a</argument> <argument>http://xlogo.tuxfamily.org/fr/html/examples-fr/3d/de.lgo</argument> </application-desc> </jnlp> |
This file is written in format XML. The most important part are these four lines:
<argument>-lang</argument> <argument>fr</argument> <argument>-a</argument> <argument>http://xlogo.tuxfamily.org/fr/html/examples-fr/3d/de.lgo</argument> |
These lines specify the parameters for XLOGO on startup
A last hint: Because Tuxfamily’s server can’t accept all connections, it’s better to put the file xlogo.jar on your site. To link this file with the .jnlp file, you just have to modify the address on line 2 after codebase=