powered by Jive Software

How to Create Spark.exe?

Hello all, I am still fairly new to the Openfire/Spark solutions. And am totally impressed. I do have a question after going through posts through the ignite forums I still have not yet found a simple solution to my problem.

How does one take the spark.jar file and recompile it into a new spark.exe file? Or is my thinking totally off on this?

Using: Openfire 3.7.1 and Spark 2.6.3

I have already installed Install4j and have successfully created an installer, which works out perfectly (on windows 7 64bit). But now I would like to change the Spark.exe file to to have a different name/icon as to be more inline with company branding. Steps I have taken.

  1. I have changed out the files/images in the spark.jar/images folder

  2. Made changes to the default.properties file

3. Skipped Couldn’t figure out how to compile the new Spark.exe (I have attempted with exe4j, but no luck)

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

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

at java.lang.Class.getConstructor0(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.launcher.Startup.start(Startup.java:84)

at org.jivesoftware.launcher.Startup.main(Startup.java:44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Caused by: java.lang.ClassNotFoundException: com.install4j.api.launcher.StartupNotification$Listener

at java.net.URLClassLoader$1.run(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

… 13 more

I assumed maybe I didn’t do something right in exe4j

  1. Built an installer using install4j.

Any help would definitely be appreciated, let me know if I can/should provide anymore details

After weeks of messing around and putting together bits and pieces from this forum I managed to create my own exe / msi of a rebranded version of spark

I’m going to do a write up now and will update with a link.

It’s completely free and easy and i’ll do my best to answer any questions, I think I ran into every brick wall there was so should be of some help

You won’t need **exe4j or Install4j **


What if my windows installer has encountering error. How can I create spark.exe?

What you should do is post the exact error and give more details.

Thanks MJMC I see your document, I will give it a try looks pretty informative! I am def a systems guy and trying to branch into programming and learn new tools/things.

Please keep me posted how you get on.