powered by Jive Software

Spark JNLP java.lang.NoClassDefFoundError

Im trying to launch spark from a JNLP file. I did some searching for a JNLP file, finiding on on the forum here I coppied it to my web server. I downloaded the linux spark client, extracted it and coppied over the necesary jar files and signed them. After this I tried to launch the application and it opens up java and starts to load but I am getting an error. Im not sure were I am going wrong so any advice would be wonderful.

Here is the error that I am getting.

java.lang.NoClassDefFoundError: com/install4j/api/launcher/StartupNotification$Listener

Here is a copy of my jnlp file.

<?xml version=“1.0” encoding=“utf-8”?>

<!-- JNLP File for Demo Applet -->

<jnlp

spec=“1.0+”

codebase=“http://localhost/Spark

href=“Spark.jnlp”>

<information>

<title>Spark</title>

<vendor>Jive Software</vendor>

<description>Spark Instant Messenger</description>

<description kind=“short”>Spark</description>

<offline-allowed/>

</information>

<security>

<all-permissions/>

</security>

<resources>

<j2se version=“1.5+”/>

<jar href=“lib/activation.jar”/>

<jar href=“lib/base.jar”/>

<jar href=“lib/spark.jar” main=“true”/>

<jar href=“lib/smack.jar”/>

<jar href=“lib/smackx.jar”/>

<jar href=“lib/smackx-debug.jar”/>

</resources>

<application-desc main-class=“org.jivesoftware.Spark”/>

</jnlp>

Thank you for your help.

I seem to have gotten all of the correct JAR files in my JNLP and it is working now.

Here is a copy of my JNLP file incase anyone else runs into the same issue.

<?xml version=“1.0” encoding=“utf-8”?>

<!-- JNLP File for Demo Applet -->

<jnlp

spec=“1.0+”

codebase=“localhost”

href=“Spark.jnlp”>

<information>

<title>Spark</title>

<vendor>Jive Software</vendor>

<description>Spark Instant Messenger</description>

<description kind=“short”>Spark</description>

<offline-allowed/>

</information>

<security>

<all-permissions/>

</security>

<resources>

<j2se version=“1.5+”/>

<jar href=“lib/activation.jar”/>

<jar href=“lib/asterisk-im-client.jar”/>

<jar href=“lib/base.jar”/>

<jar href=“lib/dom4j.jar”/>

<jar href=“lib/i4jruntime.jar”/>

<jar href=“lib/smack.jar”/>

<jar href=“lib/smackx-debug.jar”/>

<jar href=“lib/smackx.jar”/>

<jar href=“lib/spark.jar” />

<jar href=“lib/startup.jar” main=“true”/>

<jar href=“lib/swingx.jar”/>

<jar href=“lib/syntheticaBlueMoon.jar”/>

<jar href=“lib/synthetica.jar”/>

<jar href=“lib/systeminfo.jar”/>

<jar href=“lib/xpp.jar”/>

<jar href=“lib/xstream.jar”/>

</resources>

<application-desc main-class=“org.jivesoftware.launcher.Startup”/>

</jnlp>

Hi David,

Have you entered a case that the chat window did not pop up with you launch Spark by webstart? Also, plugin such as translator does not appear? I figured that if I use the normal way to start Spark (i.e. Using the Spark.exe) file, a couples of files such as all those plugin jars will be copied to my windows profile directory (i.e. C:\Documents and Settings{proifle name}\Spark). When I delete those files and use webstart to launch, all plugin jars and emotions icons are missing and Spark will behave abnormally. Any ideas?

Thanks in advance.