Rails 命令不适用于 Jruby 1.6.2rails 3.0.9

发布于 2024-11-17 13:55:27 字数 192 浏览 6 评论 0原文

我正在尝试创建新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

万人眼中万个我 2024-11-24 13:55:27

你运行什么命令?看起来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.

肤浅与狂妄 2024-11-24 13:55:27

完毕!

我更改了 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

谁把谁当真 2024-11-24 13:55:27

我也遇到了这个问题,这是因为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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文