Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler .bat is incorrect on Windows after updating rubygems #5632

karlhe opened this Issue Feb 27, 2019 · 1 comment


None yet
2 participants
Copy link

karlhe commented Feb 27, 2019


JRuby: jruby from jruby-dist-
OS: Windows Server 2012 R2, Windows Server 2016 Datacenter

Expected Behavior

Bundler runs normally

Actual Behavior

Fresh install

C:\jruby-\bin>gem update --system
C:\jruby-\bin>gem install bundler
'"C:\jruby-\bin\ruby.exe"' is not recognized as an internal or external c
operable program or batch file.

Contents of bundle.bat:

@"%~dp0ruby.exe" "%~dpn0" %*

When installing bundler 1.17.3 without updating rubygems:

IF NOT "%~f0" == "~f0" GOTO :WinNT
@"C:\jruby-\bin\jruby.exe" "C:/jruby-" %1 %2 %3 %4 %5 %6 %7 %8 %9
@"C:\jruby-\bin\jruby.exe" "%~dpn0" %*

Also of note: gem update --system installs bundler 1.17.3 and creates jbundle and jgem binaries, which I'm not sure what the purpose of is.

May well be an issue with rubygems or bundler, but since bundler 2 requires rubygems 3 it's a bit hard to pinpoint...


This comment has been minimized.

Copy link

headius commented Apr 10, 2019

Sorry for the delay on this one!

Yeah I think this is likely a problem with RubyGems, since the only thing you did to break it was to update RubyGems.

Could you open an issue with RubyGems about this and let us know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.