Skip to content

.bat files in bin incorrectly use "jruby.bat.exe" instead of "jruby.exe", which causes file not found errors when executing in Windows #3772

@ikakara

Description

@ikakara

Running rake results in the following error:

'"..\bin\jruby.bat.exe"' is not recognized as an internal or external command, operable program or batch file.

This is because the batch file contains "jruby.bat.exe" instead of "jruby.exe"

ast works fine, but many of the other batch files are incorrect.

Environment

jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 25.74-b02 on 1.8.0_74-b02 +jit [Windows 10-amd64]

This issue also occurs in jruby version 1.7.24, and I imagine this bug is in other Windows versions as well.

Expected Behavior

Running rake should produce:
C:\jruby-9.0.5.0\bin>rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:\jruby-9.0.5.0\bin\rake:23:in `'
(See full trace by running task with --trace)

Actual Behavior

'"C:\jruby-9.0.5.0\bin\jruby.bat.exe"' is not recognized as an internal or external command, operable program or batch file.

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