You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2018/07/12 12:51:27 UTC

[04/11] groovy git commit: Fix NoClassDefFoundError when using Java9

Fix NoClassDefFoundError when using Java9


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/8065943c
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/8065943c
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/8065943c

Branch: refs/heads/GROOVY_2_5_X
Commit: 8065943c9a05950b53ce8991e68740a56345be16
Parents: 86d20d7
Author: sunlan <su...@apache.org>
Authored: Fri Sep 22 12:59:58 2017 +0800
Committer: Paul King <pa...@asert.com.au>
Committed: Thu Jul 12 22:37:27 2018 +1000

----------------------------------------------------------------------
 src/bin/startGroovy     | 2 ++
 src/bin/startGroovy.bat | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/8065943c/src/bin/startGroovy
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index e59a4bf..ee78b68 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -221,6 +221,8 @@ if $darwin; then
     JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GROOVY_APP_NAME -Xdock:icon=$GROOVY_HOME/lib/groovy.icns"
 fi
 
+JAVA_OPTS="$JAVA_OPTS --add-modules ALL-SYSTEM"
+
 # For Cygwin, switch paths to Windows format before running java
 if $cygwin ; then
     GROOVY_HOME=`cygpath --mixed "$GROOVY_HOME"`

http://git-wip-us.apache.org/repos/asf/groovy/blob/8065943c/src/bin/startGroovy.bat
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy.bat b/src/bin/startGroovy.bat
index 3d5a534..6b67567 100644
--- a/src/bin/startGroovy.bat
+++ b/src/bin/startGroovy.bat
@@ -266,6 +266,8 @@ if not "%TOOLS_JAR%" == "" set GROOVY_OPTS=%GROOVY_OPTS% -Dtools.jar="%TOOLS_JAR
 set GROOVY_OPTS=%GROOVY_OPTS% -Dgroovy.starter.conf="%STARTER_CONF%"
 set GROOVY_OPTS=%GROOVY_OPTS% -Dscript.name="%GROOVY_SCRIPT_NAME%"
 
+set JAVA_OPTS=%JAVA_OPTS% --add-modules ALL-SYSTEM
+
 if exist "%USERPROFILE%/.groovy/postinit.bat" call "%USERPROFILE%/.groovy/postinit.bat"
 
 @rem Execute Groovy