If calling JRuby with a value in system property "jruby.gem.home", then this works as expected and updates the GEM_HOME environment setting.
Nevertheless, a warning "jruby: warning: unknown property jruby.gem.home" is written to output.
Last seen with jruby 9.4.12.0