Skip to content

warning message: #57

Open
Open

Description

@coderextreme

/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

Activity

  1. headius commented on Oct 24, 2025

    @headius
    Member

    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.

  2. transferred this issue fromjruby/jrubyon Oct 24, 2025
  3. headius commented on Oct 24, 2025

    @headius
    Member

    Similar report in #58.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions