Create exe?

I have the source and have made the changes I want.

I have a working program from the src files, but what tool do I use to make an exe that will create the desktop Icon, works with the uninstaller, etc.

Thanks…

Am also in need of the same solution. If anybody knows plz reply us.

Thanks and Regards,

Praveen.

Hi

here is a Patch to create an EXE-File with lauch4j and an installer with IZPack

http://www.igniterealtime.org/community/message/188636#188636

More Information about izpack and lauch4j can you find here:

Launch4j

http://www.igniterealtime.org/community/docs/DOC-1766

IzPack:

http://www.igniterealtime.org/community/docs/DOC-1767

Hi cstux,

Thnk u for ur response. I have followed the steps which u have mentioned. But am getting the following exception. I couldnt find out the reason.

E:\Prawin\spark_2_5_8\build>ant installer.izpack
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml

init:

resources:

base:
[jar] Building jar: E:\Prawin Share\spark_2_5_8\target\build\lib\base.jar

build:

jar:

installer.izpack:
[IzPack] Building installer jar: E:\Prawin Share\spark_2_5_8\installer\spark-
installer.jar
[IzPack] Copying 55 files into installer
[IzPack] Merging 5 jars into installer
[IzPack] Writing 1 Pack into installer

BUILD FAILED
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDr
iver

Total time: 12 seconds

Which version of patch do you use?

Before you use “ant installer.izpack” execute “ant clean”.

Hi,

Am using IzPack-install-4.2.1 and launch4j-3.0.1-win32.exe. I have also execute “ant clean”. But still am getting the same exception. Please help me.

Thanks and Regards,

Praveen

Do you use one of these patches?

http://www.igniterealtime.org/community/message/188759#188759

Hi,

Now am able to generate the exe. But after the installation, I couldnt run the spark client. When I run the Spark.lnk file from the command prompt I get the following exception.

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>Spark.lnk

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>
C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>if “” == “-debug” goto debug

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>if “” == “-noconsole” goto noconso
e

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>java -Dappdir=… -cp …/lib/window
/jmf.jar;…/lib/startup.jar;…/lib/windows/jdic.jar;…/resources;…/lib/windows
-Djava.library.path="…/lib/windows" org.jivesoftware.launcher.Startup
Exception in thread “main” java.lang.NoClassDefFoundError: org/jivesoftware/lau
cher/Startup
Caused by: java.lang.ClassNotFoundException: org.jivesoftware.launcher.Startup
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.jivesoftware.launcher.Startup. Program will
exit.

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>goto end

C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Spark>

Please help me.

Thanks and Regards,

Praveen