jruby-launcher
jruby-launcher copied to clipboard
warning message:
/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
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/jruby/net/coderextreme/data/JinLOA4_1.rb
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.
Similar report in #58.