-
-
Notifications
You must be signed in to change notification settings - Fork 942
Description
I'd like to provide JRuby on Windows for https://github.com/eregon/use-ruby-action.
I first tried to download https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.tar.gz but bin/jruby.exe doesn't seem to execute in 64-bit environments.
I then tried https://s3.amazonaws.com/jruby.org/downloads/9.2.9.0/jruby_windows_x64_9_2_9_0.exe and execute it with ./jruby_windows_x64_9_2_9_0.exe -q -dir ~/.rubies/jruby-9.2.9.0.
That part works fine.
Next I would like to add a ruby alias so users can just use ruby ... to run their script, and it's interchangeable with MRI.
I tried to copy jruby.bat to ruby.bat and jruby.exe to ruby.exe, but that gives:
jruby: No such file or directory -- ruby (LoadError)
https://github.com/eregon/use-ruby-action/runs/397935518
Which I don't understand what it means.
Other questions:
- Do I need to set any environment variable beyond
PATH? - What's the JRuby launcher normally used on Windows?
jruby.batthat usesjruby.exe?jruby.bashseems to also work in a bash shell, but it's quite verbose tojruby.bash ....