This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes error in launching/running the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "error in launching/running the application" Watch "error in launching/running the application" New topic

error in launching/running the application

seema pal
Ranch Hand

Joined: Nov 17, 2005
Posts: 39
An error occurred while launching/running the application.

Title: ReloadEditor
Vendor: ReloadTools
Category: Launch File Error

JAR resources in JNLP file are not signed by same certificate

my jnlp file---

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
href = "EditorFrame.jnlp" >
codebase = "" href = "EditorFrame.jnlp" -->
<homepage href="" />
<description kind="short">A demo of the capabilities
of the ReloadEditor Graphical User Interface.</description>
<icon href="file:///home/guest/scormplayer/editor/reload-editor.gif"/>

<j2se version="1.4+"/>

<jar href="file:///home/guest/scormplayer/editor/reload-editor.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/castor-" />
<jar href="file:///home/guest/scormplayer/editor/lib/jdom.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/reload-diva.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/reload-dweezil.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/reload-jdom.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/reload-moonunit.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/reload-support.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/xercesImpl.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/xml-apis.jar" />
<jar href="file:///home/guest/scormplayer/editor/lib/AppleJavaExtensions.jar"/>
<application-desc main-class=""/>
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
So what kind of error?

SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
j.g. jungman

Joined: Jan 16, 2006
Posts: 2
When you will run the above JNLP, you will get the following Web Start exception:

JAR resources in JNLP file are not signed by same certificate

The reason for this is simple - one of the jar files that you are using was already signed by another party. Here is the way to find it:

jarsigner -certs -verbose -verify activation.jar

You will see a long list of certificates (one for each file). This means that this specific jar was signed by another party (Sun in our case). The solution for the problem is simple - put this jar in a separate JNLP and reference it in your main JNLP:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="activation.jnlp">
<vendor>Sun Microsystems, Inc.</vendor>
<jar href="activation.jar"/>

As you can see, we don't ask for permissions, as this specific jar doesn't need them. Then, you reference this activation.jnlp in your main JNLP:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="wizard.jnlp">
<title>XJC Wizard</title>
<description>Wizard frontend for XJC generator</description>
<description kind="short">Wizard frontend for XJC generator</description>
<j2se version="1.5+"/>
<jar href="jaxbw.jar"/>
<jar href="substance.jar"/>
<jar href="jaxb-api.jar"/>
<jar href="jaxb-impl.jar"/>
<jar href="jaxb-xjc.jar"/>
<jar href="jsr173_api.jar"/>
<extension name="activation" href="activation.jnlp"/>
<application-desc main-class="org.jvnet.jaxbw.xjcfe.wizard.WizardMainFrame"/>
Consider Paul's rocket mass heater.
subject: error in launching/running the application
Similar Threads
launching/running the application
problem in running the application through java web start
some error occured in launching the application
error in launching application
jnlp file error