You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/c/jruby-10.0.2.0/bin/jruby -J-Xss1g -J-Xmx19g ../jruby/net/coderextreme/data/JinLOA4_1.rb
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.kenai.jffi.internal.StubLoader in module org.jruby.dist (file:/C:/jruby-10.0.2.0/lib/jruby.jar)
WARNING: Use --enable-native-access=org.jruby.dist to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
I see /c/jruby-10.0.2.0 in your example command line... I'm guessing this is Cygwin on Windows?
If that's the case, then the jruby command there is from the C-based JRuby launcher, which has fallen behind the shell-based one quite a bit. This just requires a flag to be added to the command line.
You can add that command line yourself with -J--enable-native-access=org.jruby.dist, by putting that in env var JRUBY_OPTS, or by putting --enable-native-access=org.jruby.dist into env var JDK_JAVA_OPTIONS.
I'm going to move this issue over to the launcher repo.
cc @enebo@mrnoname1000 We need to get off that C/++ launcher and on to something else, but we probably should do one last update of it for the recent shell features.
Activity
headius commentedon Oct 24, 2025
I see
/c/jruby-10.0.2.0in your example command line... I'm guessing this is Cygwin on Windows?If that's the case, then the
jrubycommand there is from the C-based JRuby launcher, which has fallen behind the shell-based one quite a bit. This just requires a flag to be added to the command line.You can add that command line yourself with
-J--enable-native-access=org.jruby.dist, by putting that in env varJRUBY_OPTS, or by putting--enable-native-access=org.jruby.distinto env varJDK_JAVA_OPTIONS.I'm going to move this issue over to the launcher repo.
cc @enebo @mrnoname1000 We need to get off that C/++ launcher and on to something else, but we probably should do one last update of it for the recent shell features.
headius commentedon Oct 24, 2025
Similar report in #58.