You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/09/22 05:00:06 UTC

groovy git commit: Fix NoClassDefFoundError when using Java9

Repository: groovy
Updated Branches:
  refs/heads/master edea990dc -> e74774255


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/e7477425
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e7477425
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e7477425

Branch: refs/heads/master
Commit: e747742552e1e32d02f84546bd168e77b4cd991b
Parents: edea990
Author: sunlan <su...@apache.org>
Authored: Fri Sep 22 12:59:58 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Fri Sep 22 12:59:58 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/e7477425/src/bin/startGroovy
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index 36d6edd..d727595 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -220,6 +220,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/e7477425/src/bin/startGroovy.bat
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy.bat b/src/bin/startGroovy.bat
index b1e8a3e..f21a763 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