From 9cb652eaab01f61711cb67554f0bfdfa8f6f841e Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 4 May 2022 15:12:36 +0200 Subject: bundle JRE on linux --- .../OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz | Bin 0 -> 45971131 bytes pdf-over-gui/pom.xml | 8 ++++++++ .../src/main/resources/izpack-linux/install.xml | 3 +++ .../src/main/resources/scripts/pdf-over_linux.sh | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 jre-bundles/OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz diff --git a/jre-bundles/OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz b/jre-bundles/OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz new file mode 100644 index 00000000..b1967c1c Binary files /dev/null and b/jre-bundles/OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz differ diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml index e615caec..5bcd6a78 100644 --- a/pdf-over-gui/pom.xml +++ b/pdf-over-gui/pom.xml @@ -486,6 +486,8 @@ org.eclipse.swt.gtk.linux.x86_64 + OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz + jdk-17.0.3+7-jre linux pdf-over_linux-x86_64 ${pdfover-build.output-filename-without-jar}.jar @@ -506,6 +508,12 @@ UTF-8 ${pdfover-build.staging-dir} + + ${pdfover-build.root-dir}/jre-bundles + + ${pdfover-build.bundled-jre.archive-filename} + + src/main/resources/izpack-linux diff --git a/pdf-over-gui/src/main/resources/izpack-linux/install.xml b/pdf-over-gui/src/main/resources/izpack-linux/install.xml index 1e95e93a..8df8b3a7 100644 --- a/pdf-over-gui/src/main/resources/izpack-linux/install.xml +++ b/pdf-over-gui/src/main/resources/izpack-linux/install.xml @@ -58,6 +58,9 @@ + + + diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh b/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh index c79726df..6736aa15 100644 --- a/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh +++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh @@ -1,3 +1,3 @@ #!/bin/sh BASEDIR=`dirname $0` -exec java -cp "$BASEDIR/lib/*" at.asit.pdfover.gui.Main "$@" +exec $BASEDIR/jre/bin/java -cp "$BASEDIR/lib/*" at.asit.pdfover.gui.Main "$@" -- cgit v1.2.3