powered by Jive Software

Spark Custom Build - I can't do it

OK, so following the instructions from http://www.igniterealtime.org/community/docs/DOC-1521 and compiled the source code with my updated images. It compiles successfully, and looks like I want it to.

I have been trying for a week to successfully build this code into an EXE, and I apparently am too stupid to do so.

I have used the method documented here:


I downloaded Apache Ant and install4j. I was only able to install the 2nd, as the Apache Ant zip just contained source code. After following the instructions - with the exception of ANT RELEASE from a command line because I can’t figure out what I’m supposed to isntall - I ended up with an executable named $.exe. It ran, though the filename is obviously not what I wanted, but threw exceptions after the installer finished. In addition, I can’t afford the $1000 (seriously?!) to get the version of Install4j that does not have nag screens.

After a few days of toying around, I decided to try this method:


This guy says he’s been building customized versions of Spark for 2 years, so surely I can figure this out, right? No. No, I can’t. I can’t figure out Launch4j to save my life. I have no idea what the Jar I need to select is, I don’t know what a manifest is, and most importantly, I have absolutely no idea how to install or run ANT.

Speaking of ANT, I have downloaded apache-ivy-2.1.0-rc2-bin-with-deps.zip, but there is no installer in there. I have no idea what is meant by running ANT from a command prompt, because I haven’t installed it! It looks like another Java program that I need to compile, but obviously this is not my strong point.

My question is this:

How in the world do I get me successfully compiling source from target into an EXE?

Thank you so much for any help you can give me. I’m at my wits end. Ihad no idea Java could be so complicated.

I suggest to ask in a comment to this doc as it is suggested there.

If you use NetBeans to compile Spark then you can run ant target. I’m not sure in what directory you should do this. Probably this is some izpack.installer directory, so you should find it in the sources list in NetBeans, expand it, right click build.xml and select Run Target > Jar.

I’m not usre this will create exe installer though. As launch4j an izpack by default can create jar installers. You need something additional to create exe installers (actualy 7-zip SFX archives).