## JRE bundle wizard |
| up | next

| With the JRE bundle wizard you can create JRE bundles for install4j from any JRE installation on your disk. Packaging your own JRE can be usful if you want to add standard extensions such as the Java Communications API to your JRE. The JRE bundle wizard only works for the platform you are running on. That means, to create a JRE bundle for Windows, you have to run install4j on Windows, to create a bundle for Linux, you have to run install4j on Linux.

| The JRE bundle wizard is started by choosing Project->Create a JRE bundle from install4j's main menu. The JRE bundle wizard leads you step by step through the process of choosing the desired JRE and creating an install4j bundle from it.

| Advanced topic: Manually creating a JRE bundle A JRE bundle for install4j is simply a file with the naming scheme:
            [operating system]-[architecture]-[JRE version].tar.gz
in `{install4j installation directory}/jres` or `{user home directory}/.install4j3/jres` (if the former is not writable). The `.tar.gz` file directly contains the JRE, i.e. the `bin` and `lib` folders. If you use the `tar` and `gzip` tools, you can create JREs for bundling without the use of the JRE bundle wizard. The single steps are outlined below:
            cd jre
            tar cvf minix-x86-1.5.0.tar *
            gzip minix-x86-1.5.0.tar
            cp minix-x86-1.5.0.tar.gz /usr/install4j/jres
First you change into the top-level directory of the JRE, then you tar all files and directories and gzip the tar archive. The last step copies the bundle into the directory `{install4j installation directory}/jres`. You have to restart install4j for the JRE to be listed in the "Bundled JRE" step of the media file wizard. If you choose to bundle your JRE this way on Microsoft Windows, you have to install the tar and gzip tool available at tar: http://gnuwin32.sourceforge.net/packages/tar.htm gzip: http://gnuwin32.sourceforge.net/packages/gzip.htm