Skip to content

Missing require for JRuby #51

Description

@fzakaria

Running a small script I encounter the following error:

require 'systemu'
puts systemu('/sbin/ifconfig')
NameError: uninitialized constant JRuby::PathHelper
  const_missing at org/jruby/RubyModule.java:3760
        systemu at /home/fmzakari/.gem/jruby/2.5.0/gems/systemu-2.6.5/lib/systemu.rb:287
        systemu at /home/fmzakari/.gem/jruby/2.5.0/gems/systemu-2.6.5/lib/systemu.rb:10
         <main> at ruby-failure.rb:4

The following missing require fixes it.

require 'systemu'
require 'jruby/path_helper'

puts systemu('/sbin/ifconfig')

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions