Please check first, if one of the JREs provided by ej-technologies' JRE download server fits your needs.
You can also save your bundle to any other directory and use the Manual entry option in the Bundled JRE step of the media wizard to select the bundle file.
The version and the custom ID are used to construct the name of the bundle file. The format of the name is important for the IDE to recognize the file as a bundle and determine its scope.
createbundle [OPTIONS] [JRE home directory]
The available options are:
To make the createbundle task available to ant, you must first insert a taskdef element that tells ant where to find the task definition. Here is an example of using the task in an ant build file:
<taskdef name="createbundle" classname="com.install4j.CreateBundleTask" classpath="C:\Program Files\install4j\bin\ant.jar"/> <target name="media"> <createbundle javahome="c:\Program Files\Java\jre6"/> </target>
The taskdef definition must occur only once per ant-build file and can appear anywhere on the top level below the project element.
Note: it is not possible to copy the ant.jar archive to the lib folder of your ant distribution. You have to reference a full installation of install4j in the task definition.
The createbundle task supports the following parameters:
|javahome||The home directory of the JRE that should be bundled||Yes|
|outputDirectory||The output directory||Corresponds to the --output command line option described above.|
|version||Corresponds to the --version command line option described above.||No|
|code||Corresponds to the --code command line option described above.||No|
<createbundle javahome="/usr/lib/jvm/java-1.6.0_18/jre" output="/home/build/projects/myproject/jrebundles" version="1.6.0" code="j3d" />