User Tools

Site Tools


This is an old revision of the document!

Java Web Start a.k.a. JNLP

Disclaimer: these are only some note – primarily for myself

Java Tutorial on Deployment

.jnlp Example

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "">
<jnlp codebase="" href="anscp.jnlp">
    <title>Animated Scatter Plot</title>
    <vendor>Vienna University of Technology, Danube University Krems</vendor>
    <homepage href=""/>
    <description>Visualizing Patient Cohorts by Animated Scatter Plots</description>
    <icon href="default"/>
    <shortcut online="true"/>
    <j2se href="" version="1.6+"/>
    <jar href="anscp-2.0.1.jar" main="true"/>
    <jar href="log4j-1.2.15.jar"/>
  <application-desc main-class="main.Main">


Problem: JAXB requires (some) reflection

Solution: you need security permissions in .jnlp file



Problem: ClassLoader.getSystemResourceAsStream(str) does not work

Solution: use Thread.currentThread().getContextClassLoader().getResource(str).openStream() instead


Sign JAR file

keytool -genkeypair -validity 900
jarsigner anscp-2.0.1.jar mykey


  • default validity is only 6 months
  • mykey is default alias
  • you need to sign all .jar files
java/jws.1286810356.txt · Last modified: 2010/10/11 17:19 by Alexander Rind

alex @ ieg: home about me publications research