Skip to content

NoMethodError trying to install lock_jar under JRuby 10.0.2.0 #40

@mrckzgl

Description

@mrckzgl

As title, see following console output:

[redacted@redacted janusgraph_memory_leak]$ ruby --version
jruby 10.0.2.0 (3.4.2) 2025-08-07 cba6031bd0 OpenJDK 64-Bit Server VM 21.0.8+9 on 21.0.8+9 +indy +jit [x86_64-linux]
[redacted@redacted janusgraph_memory_leak]$ gem install lock_jar
Fetching lock_jar-0.15.2.gem
Fetching thor-1.4.0.gem
Fetching naether-0.15.10-java.gem
Fetching httpclient-2.9.0.gem
Successfully installed thor-1.4.0
Successfully installed httpclient-2.9.0
Building native extensions. This could take a while...
ERROR:  Error installing lock_jar:
        ERROR: Failed to build gem native extension.

    current directory: /home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java
/home/redacted/.rvm/rubies/jruby-10.0.2.0/bin/jruby -rrubygems /home/redacted/.rvm/rubies/jruby-10.0.2.0/lib/ruby/gems/shared/gems/rake-13.3.0/exe/rake RUBYARCHDIR\=/home/redacted/.rvm/gems/jruby-10.0.2.0/extensions/universal-java-21/3.4.0/naether-0.15.10-java RUBYLIBDIR\=/home/redacted/.rvm/gems/jruby-10.0.2.0/extensions/universal-java-21/3.4.0/naether-0.15.10-java
rake aborted!
NoMethodError: undefined method 'exists?' for class File
Did you mean?  exist?
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/lib/naether/configuration.rb:14:in 'initialize'
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/lib/naether/configuration.rb:68:in '<module:Naether>'
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/lib/naether/configuration.rb:2:in '<main>'
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/lib/naether.rb:23:in '<main>'
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/lib/naether/bootstrap.rb:1:in '<main>'
/home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java/Rakefile:5:in 'block in <main>'
org/jruby/ext/monitor/Monitor.java:85:in 'synchronize'
org/jruby/ext/monitor/Monitor.java:85:in 'synchronize'
Tasks: TOP => default => prepare
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /home/redacted/.rvm/gems/jruby-10.0.2.0/gems/naether-0.15.10-java for inspection.
Results logged to /home/redacted/.rvm/gems/jruby-10.0.2.0/extensions/universal-java-21/3.4.0/naether-0.15.10-java/gem_make.out

Did I miss something or is lock_jar /naether-0.15.10 not compatible with Jruby 10 / Ruby 3.4 ?

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