jar-dependencies icon indicating copy to clipboard operation
jar-dependencies copied to clipboard

JDK 17: Native subprocess control requires open access to the JDK IO subsystem

Open mohamedhafez opened this issue 3 years ago • 1 comments

I get the following warning when doing gem install psych on my M1 Macbook Pro with JDK 17:

  jar dependencies for psych-4.0.3-java.gemspec . . .
2022-02-22T19:59:56.015-06:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
      org.yaml:snakeyaml:1.28:compile

Sounds like it could be a similar issue to this one: https://github.com/jruby/jruby/issues/6721

mohamedhafez avatar Feb 23 '22 02:02 mohamedhafez

running lock_jars produces the same warning

mohamedhafez avatar Feb 24 '22 00:02 mohamedhafez