Solution is to use jruby's SafePropertyAccessor to access system properties. I'm working on a pull request.