Deploy a java app over http server

Today i have to deploy a java application over a http-server. The http-server provides the complete java application with dependencies. To start a java application over a http-server you have to create a .jnlp file which provides a description of the application (dependencies, parameters, MainMethod).

First of all you need to provide a JNLP file:
You have to put this file in the root of your http-server.

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" 
      codebase="http://slg.ddnss.de/"
      href="test.jnlp">
  <information>
    <title>Java Test App</title>
    <vendor>Christian Mueller</vendor>
    <homepage href="https://slg.ddnss.de"/>
    <description>Java http deploy test app</description>
    <description kind="short">Java Test App</description>
    <description kind="tooltip">Java Test App</description>
    <icon href="logo.png"/>
  </information>
  <update check="always"/>
<resources>
<java version="1.8+" java-vm-args="-Xms24m -Xmx512m"/>
<jar href="test.jar"/>
</resources>
<security><all-permissions/></security>
<application-desc main-class="de.ddnss.slg.Main">
  <argument>args1</argument>
  <argument>args2</argument>
</application-desc>
</jnlp>

Than you need to generate a keystore to sign your jar files.

keytool -genkey -keyalg RSA -alias myFirstKey -keystore myKeystore -validity 1000

Now you can sign your jarfile:

jarsigner -keystore myKeystore -verbose test.jar myFirstKey

ok everything is done. Copy the signed jarfile to the root of you http-sever.
Start your app with your jnlp file. http://slg.ddnss.de/test.jnlp