source: main/trunk/release-kits/shared/windows/README.txt@ 35373

Last change on this file since 35373 was 35373, checked in by kjdon, 3 years ago
  1. README for generating the self-extracting JRE on windows, as I can't find any existing instructions anywhere. 2. We're moving to updating the bundled JRE 7u72 to JRE 8u301. (We're also updating the JDK used by the release kits to Java 8.). So renaming the previous self-extracting bundled JRE to version 7 and replacing with bundled JRE version 8u301.
File size: 2.2 KB
Line 
1Self-extracting jre instructions
2_________________________________
3
41. You need 7za.exe and 7zCon.sfx from the shared/windows/7za folder folder to generate the self-extracting jre from a jre.
5
6
72. Need the jre for your java version.
8
9- For windows GS3 binaries, remember to work with a 32 bit Java's JRE, which you can grab from Oracle, such as from https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
10For acquiring a JRE (for Macs) see the README in shared/mac.
11
12- Java 8 should be used for Expeditee. In Aug 2021, we're also moving to Java 8 for Greenstone on Windows, Linux and Mac for the bundled JRE. (Hereafter we're also upgrading to Java 8 for the JDK used by the release-kit to create the snapshots. As these concern envi's snapshot task, adjust the environment.pl files inside envi to point to the JDK version you want to compile with. This is presently 8.)
13
14- When the Greenstone/Expeditee installer runs, the jre will end up extracted into a folder named jre.
15- Don't tar the jre for Expeditee or Windows Greenstone. (But Greenstone linux/mac expects the jre to be tarred up first.)
16
173. Run:
18C:\path\to\release-kits\shared\windows>
19 7za\7za.exe a -sfx -mx=9 jre.exe C:\Path\to\32-bit\jre
20
21Remember, for Windows, leave the jre untarred. (For Greenstone on Linux/Mac it should produce jre.tar, see Linux and Mac specific instructions in their respective README files)
22
23* -m0=lzma2 is already done automatically, setting the compression mode to lzma2.
24* -mx=9 set its (compression? speed?) to ultra
25* the output file name expected by the release-kit is jre_bin for 32 bit linux, jre_bin_x64 for 64 bit linux
26* -sfx indicates that it will generate a self-extracting binary out of the input file
27* the "a" indicates it will add the files from the input folder (the /path/to/your-jdk-version/jre in this case) to the output file
28
29
304. Test the jre.exe produced: double click. For Greenstone on Windows and for Expeditee, it should produce a jre folder. (For Greenstone on Linux/Mac running the binary will produce jre.tar)
31
325. Run the nightly release kit, then test the generated release binary by running the installer on a different Windows machine to the one that generated the release.
33
34
Note: See TracBrowser for help on using the repository browser.