Skip to content

Bundler error when creating jar using jruby-jars 9.1.9.0 #415

@karlhe

Description

@karlhe

When attempting to execute the compiled jar file when warbler packs in jruby-jars-9.1.9.0:

LoadError: no such file to load -- bundler/shared_helpers
  require at org/jruby/RubyKernel.java:961
  require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:130
   <main> at uri:classloader:/META-INF/init.rb:21
  require at org/jruby/RubyKernel.java:961
   (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
   <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
ERROR: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- bundler/shared_helpers

Seems like warbler will always use the latest available copy of the jruby-jars gem regardless of what is specified in the Gemfile, but after uninistalling jruby-jars-9.1.9.0 it packed up 9.1.8.0 which doesn't have the same issue.

Appears to just be a `require 'bundler/shared_helpers', and bundler is present in the gems folder of the created jar so I'm guessing it's something to do with changes in 9.1.9.0?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions