Changeset 35566


Ignore:
Timestamp:
2021-10-13T00:21:38+13:00 (3 years ago)
Author:
davidb
Message:

As we are making use of javac's -source and -target in Greenstone to allow for backwards compatability, then to do this properly we should also be making use of -bootclasspath and more carefully control the rt.jar file that is specified. rt.jar can actually be quite large (~50 MBytes), and so even though it is fairly straightforward to add in the Zulu OpenJDK rt.jar in (as rt-openjdk6.jar) this file has not been committed into the subversion repository, and instead uses an if-statement to test if it exists or not before adding in the -botclasspath argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/makegli.sh

    r35438 r35566  
    5656if [ "x$JAVACFLAGS" = "x" ] ; then
    5757    JAVACFLAGS="-source 1.6 -target 1.6"
     58fi
     59
     60# https://stackoverflow.com/questions/15492948/javac-source-and-target-options
     61if [ -f lib/rt-openjdk6.jar ] ; then
     62    JAVACFLAGS="$JAVACFLAGS -bootclasspath lib/rt-openjdk6.jar -extdirs \"\""
    5863fi
    5964
Note: See TracChangeset for help on using the changeset viewer.