Changeset 35672 for main


Ignore:
Timestamp:
2021-10-23T17:12:12+13:00 (3 years ago)
Author:
davidb
Message:

Greenstone3 also uses the 'jre/lib/ext/jce.jar' extension, which we also need to make available to bootclasspath. More details in the READM.txt

Location:
main/trunk/release-kits/shared/core/java-rt
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/java-rt/README.txt

    r35567 r35672  
    77The purpose of this directory is to store such rt.jar files, which are
    88then included into our compilation process through setting JAVACFLAGS
    9 appropriate.
     9appropriate (using -bootclasspath).
    1010
    11 At the time of writing Greenstone3 targets JDK 1.6 as the oldest
     11
     12At the time of writing Greenstone3 targets JDK 1.8 as the oldest
    1213supported version.  Over time it is expected that we might start
    1314accumulating other versions of rt.jar here, and so this file has been
    1415named:
    1516
    16   rt-openjdk6.jar
     17  rt-openjdk8.jar
    1718
    18 which reflects that it is the OpenJDK Version 6 of rt.jar that has
     19which reflects that it is the OpenJDK Version 8 of rt.jar that has
    1920been placed here. The actualy distribution of JDK used (OpenJDK)
    2021should not be relevant here, but is reflected in the filename chosen
     
    2526  https://stackoverflow.com/questions/15492948/javac-source-and-target-options
    2627
     28==
     29
     30An added extra wrinkle is we also need to deal with any jar files in
     31jre/lib/ext (part of Java's extension mechanism) that are used by any
     32Greenstone3 Java source code.  It turns out Greenstone3 admin tool uses
     33javax.crypto package which means we also need to effectively add in
     34'jce.jar' here.  Unlike rt.jar, this is *not* something that is expected
     35to change over time, and forunately Oracle has a download for the extension:
     36
     37  https://www.oracle.com/java/technologies/java-archive-downloads-java-plat-downloads.html#
     38
     39At the time of writing, JCE-1.2.2
     40
     41Following the instructions included in the download, there are in fact 4 jar files that
     42java/javac need access to to support the JCE extension:
     43
     44  jce1_2_2.jar  local_policy.jar sunjce_provider.jar  US_export_policy.jar
     45
     46These are provided there, and added in to the -bootclasspath part of JAVACFLAGS
     47through rk-setup.bash
Note: See TracChangeset for help on using the changeset viewer.