Wednesday, June 13, 2007

RCP and Java Web Start - Creating JNLP

The following link gives a detailed explanation for how to create jnlp for an RCP application 
http://www.i-proving.ca/space/RCP+and+Java+Web+Start

You will face
java.lang.NullPointerException 
at java.util.Hashtable.put(Unknown Source) 
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:58) 
at org.eclipse.core.launcher.Main.run(Main.java:977) 
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:40)

Issue: The problem is that the code relies on underscore as a delimiter between plugin name and plugin version. However, some plugins have underscore even in their version number (e.g. '...../org.eclipse.osgi_3.2.1.R32x_v20060919.jar') and these plugins fail to load. Not loading the org.eclipse.osgi causes the whole app fail to start.

Solution: use org.eclipse.osgi_3.2.1.v20060919.jar, sign this jar and change in all its references in ur jnlp.

No comments:

Post a Comment