About using groovyConsole under Java9

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

About using groovyConsole under Java9

Daniel.Sun
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
Reply | Threaded
Open this post in threaded view
|

Re: About using groovyConsole under Java9

Daniel Sun
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
Reply | Threaded
Open this post in threaded view
|

Re: About using groovyConsole under Java9

Daniel Sun
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