1. Change the Spark Source Code directory \ spark \ build's build. xml file and specify the install4j installation directory;
<Property name = "Installer. install4j. Home" value = "D: \ Program Files \ install4j"/>
2. Slave nodes;
3. Run the command line in the \ spark \ build directory;
4. Run: ant Installer. Win
5. Results:
[Install4j] compiling launcher 'spark ':
[Install4j] compiling launcher 'starter ':
[Install4j] creating media file:
[Install4j] zipping custom code JAR File
[Install4j] identifying components
[Install4j] adding JRE (windows-x86-1.6.0_01)
[Install4j] compressing files
[Install4j] applying lzma Compression
[Install4j] using custom installer icon: e: \ soft \ spark \ build \ Installer \..\..
\ SRC \ resources \ images \ spark. ICO
[Install4j] Moving media files to media directory e: \ soft \ spark \ target \ install
Er
[Install4j] The Name Of The media file is spark_2_5_6.exe.
[Install4j] the size of the media file is 33.0 MB
6. the following file should appear in the directory \ spark \ target \ Installer, indicating that the package is successful.