Revision: 5623
          http://sourceforge.net/p/jump-pilot/code/5623
Author:   edso
Date:     2017-12-11 16:49:39 +0000 (Mon, 11 Dec 2017)
Log Message:
-----------
closing fix "#463 Starting OJ with java9 throws several exceptions"
for *mac/linux*

"
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at 
org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21)
"

Modified Paths:
--------------
    core/trunk/scripts/oj_linux.sh

Modified: core/trunk/scripts/oj_linux.sh
===================================================================
--- core/trunk/scripts/oj_linux.sh      2017-12-10 20:46:22 UTC (rev 5622)
+++ core/trunk/scripts/oj_linux.sh      2017-12-11 16:49:39 UTC (rev 5623)
@@ -237,6 +237,15 @@
 [ -n "$JAVA_LOOKANDFEEL" ] && JAVA_OPTS="$JAVA_OPTS 
-Dswing.defaultlaf=$JAVA_LOOKANDFEEL"
 JAVA_OPTS="$JAVA_OPTS $JAVA_OPTS_OVERRIDE"
 
+# java9 needs some packages explicitly added/exported
+if awk "BEGIN{if($JAVA_VERSION >= 9)exit 0;else exit 1}"; then
+  JAVA_OPTS="--add-exports java.base/jdk.internal.loader=ALL-UNNAMED \
+--add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED \
+--add-exports java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED \
+--add-exports java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-modules 
java.se.ee \
+$JAVA_OPTS"
+fi
+
 # in case some additional archives were placed in native dir inbetween
 extract_libs "$JUMP_NATIVE_DIR"
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to