You should source out of SVN with svn client (like TortoiseSVN, RapidSVN). It will create all needed structure. I’m using RapidSVN, so i can give you my instructions which i have written down for myself.
RapidSVN:
Repository > Checkout
URL http://svn.igniterealtime.org/svn/repos/spark/trunk
Destination Directory D:\My Documents\JiveSoftware\Spark
Add to bookmark, Recursive
OK
Close RapidSVN
Open
Double click the bookmark
button - Update selected
OK
Spark + Netbeans (create project before creating Spark dir - rename dir with source Spark to Spark_renamed temporary)
create new Java project with existing source - set folder and project name, dont press Next yet
then rename Spark_renamed to Spark
copy build.xml from build dir to parent
edit build.xml in parent, change basedir="…" to basedir=""
go to Netbeans and press next
press Add folder, choose src folder, Finish
in Netbeans right-click Spark project, choose Properties
click Libraries - Add JAR/Folder
select /Spark/build/lib dir (Absolute path) - OK
now Clean and Build
to launch - /target/build/bin/startup.bat
thanks for your great help, i have followed all the steps and created a build. However, when i double click the startup.bat in /target/build/bin/startup.bat nothing happened? no any spark client appear, do i need to uninstall existing spark client installation first before i click the startup.bat?
To be able to run openfire.bat need to add System variable JAVA_HOME with value C:\Program Files\Java\jdk_version (no trailing slash) (My computer > Advanced > Environment variables)
This probably applies to Spark too. I’m building both, so i never needed this for Spark alone.
i tried to add the system variable “JAVA_HOME” and the value is “C:\Program Files (x86)\Java\jdk1.6.0_20” but is still failed to run, any idea? will this because of i am using windows 7 b4-bit?
I tried to run the startup.bat in a xp 32-bit and it works, thanks, wondering how to get it working at windows 7 64-bit?
one more question, so now i have a working spark build, how can i make it become a working installer version so that i can simply double the installer and let it install and then double click the spark icon and spark will run?
I tried to run the startup.bat in a xp 32-bit and it works, thanks, wondering how to get it working at windows 7 64-bit?
You will need to use JDK for 64-bit Windows i think http://java.sun.com/javase/downloads/widget/jdk6.jsp
one more question, so now i have a working spark build, how can i make it become a working installer version so that i can simply double the installer and let it install and then double click the spark icon and spark will run?
I’m not making installers myself, so i can only give you a link, maybe it will be useful (IzPack) http://www.igniterealtime.org/community/docs/DOC-1767
I am a bit confuse here, with this izpack installer, will this make the spark.exe? i mean now i am able to run the complied spark with the .bat file, however this definitely not good for end-user. Is there a way to convert the .bat file to spark.exe like what the official spark installer downloaded which will have a spark.exe (and a nice icon) after install? Will that izpack do the job?
It will not make an exe from bat. It will make an exe which is launching spark.jar. Well, it will be different from the original Spark, as original Spark is using commercial installer4j and IzPack is a free alternative. But you can try some experimental installers and see for yourself how these installers can look like. Check spark-installer exe or jar from here:
thanks again for clarifying this, please can you show me how can i know the SVN version?
Also, I tried to replace the installed spark (spark_2_6_0_11427_online version) with the compiled spark (under target/build) by simply replace all the files and directories (bin, documentation, lib, logs, plugins, resources, xtra) and run the spark.exe and it works. will there be any protential problem with this method of update?
I still not able to create a spark.exe with launch4j and also make a installer with IzPack…
i will try and see if it run without problem in 32-bit machine.
I have another problem now, today i go download latest SVN and use the same way to compile and build it but i got a lot of errors when i run clean and build in netbean. Also i see many “!” in those source file which is complaining error parsing file.
from the output panel, there are also some “deprecation” warning, it this related to the java version i use?