Skip to content

What's a good way to install JRuby in Windows CI? #6042

@eregon

Description

@eregon

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.bat that uses jruby.exe? jruby.bash seems to also work in a bash shell, but it's quite verbose to jruby.bash ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions