You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by "Daniel.Sun" <su...@apache.org> on 2017/09/22 04:42:57 UTC

About using groovyConsole under Java9

Hi all,

      If you are using Java 9,  Groovy 2.6.0+ is recommended. In addtion,
JAVA_OPTS have to be set, e.g. under windows: `set JAVA_OPTS=--add-modules
ALL-SYSTEM`.

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html

Re: About using groovyConsole under Java9

Posted by Daniel Sun <re...@hotmail.com>.
Java will not ignore unknown option e.g. --add-modules, so we should add
option conditionally:
https://github.com/apache/groovy/commit/ca05e9ff8f217d5ac16a87fff7023a481b9c1b3f



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html

Re: About using groovyConsole under Java9

Posted by Daniel Sun <re...@hotmail.com>.
The next release of 2.6.0+ will add the option `--add-modules ALL-SYSTEM` by
default:
https://github.com/apache/groovy/commit/e6b62dfa1fc5b6471304dfe5244e84f7f6987392

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html