Rails 命令不适用于 Jruby 1.6.2rails 3.0.9
我正在尝试创建新的 Rails 项目。我已经为 Jruby platform-1.6.2 安装了 Rails 3.0.9。
我收到以下错误。
” “jruby.bat.exe”未被识别为内部或外部命令, 可运行的程序或批处理文件。 “
请做必要的事情,感谢您的宝贵时间。
谢谢并致以问候, 萨钦·贾达夫。
I am trying to create new rails project. I have installed rails 3.0.9 for Jruby platform-1.6.2.
I get following error.
"
'"jruby.bat.exe"' is not recognized as an internal or external command,
operable program or batch file.
"
Please do the needful, thanks for your time.
Thanks and Regards,
Sachin Jadhav.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你运行什么命令?看起来rails.bat 存根可能生成不正确。尝试使用
jruby.exe -Srails
运行。What command are you running? It looks like the rails.bat stub might have been generated incorrectly. Try running with
jruby.exe -S rails
instead.完毕!
我更改了 bin 中的所有 bat 文件...它已被指定为 *.bat.exe...
我将其重命名为*.exe。
祝你好运!
萨钦·贾达夫
Done!
I changed all bat files in bin... there it has been specified like *.bat.exe...
I renamed it to *.exe.
Wish you luck!
Sachin Jadhav
我也遇到了这个问题,这是因为rails 3.0.9 bin文件夹中的rails.bat文件中写入了jruby.bat.exe名称。请去重命名为jruby.exe,它就可以正常工作了。
I also got this problem and this was because of jruby.bat.exe name written in your rails.bat file in rails 3.0.9 bin folder. Please go and rename to jruby.exe, it will work fine.