forked from pool/opa-fmgui
opa-fmgui to run with JDK9+ (bsc#1090589) OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-fmgui?expand=0&rev=41
23 lines
774 B
Diff
23 lines
774 B
Diff
commit 3ed6b221531f961706f15ec7582eb0716addd94b
|
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
Date: Fri Apr 27 15:15:57 2018 +0200
|
|
|
|
opa-fmgui: force loading java.xml.bind for JDK9
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
|
diff --git install/opa-fmgui.sh install/opa-fmgui.sh
|
|
index c2283850c919..cc2f00995207 100644
|
|
--- install/opa-fmgui.sh
|
|
+++ install/opa-fmgui.sh
|
|
@@ -98,6 +98,9 @@ if [ "$JAVA" == "nojava" ]; then
|
|
read -p 'Press [Enter] key to continue...'
|
|
else
|
|
if [ -a $JAR ]; then
|
|
+ # Force loading java.xml.bind for JDK9+
|
|
+ export JDK_JAVA_OPTIONS="--add-modules java.xml.bind"
|
|
+
|
|
# run the JVM and pass the jar name
|
|
if [ $DEBUG -eq 1 ]; then
|
|
echo
|