spark研究之install4j打包spark

1、更改spark源码目录/spark/build下的build.xml文件,指定install4j安装目录;

<property name="installer.install4j.home" value="d://Program Files//install4j"/>

2、从http://www.alarmspro.com/downloads/jre/处下载windows-x86-1.6.0_01.tar.gz文件至spark/build/installer目录;

3、命令行至/spark/build目录;

4、运行:ant installer.win

5、结果:

[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、目录/spark/target/installer下应该出现如下文件,表示打包成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值