在 Windows XP 上从 Aptana Studio 3 启动 JRuby

发布于 2024-12-18 12:58:22 字数 343 浏览 3 评论 0原文

我在 Windows XP 上运行 Aptana 3.0.6 我还安装了 JRuby 1.6.4 并将 bin 目录放在我的 PATH 上

我对如何从控制台或运行脚本启动 JRuby 感到非常困惑。 Aptana 在 PATH 上查找 ruby​​,但 JRuby 是通过 JRuby 启动的。 据我所知,不可能在 Windows 上将 JRuby 作为 Ruby 启动。

有没有人找到在 Windows 上的 Aptana 中使用 JRuby 的方法?

在 Unix/OSX 机器上,我可以使用 rvm 来处理这个问题。不过 Windows 上的 Pik 没有帮助。

I'm running Aptana 3.0.6 on Windows XP
I also have JRuby 1.6.4 installed and the bin directory on my PATH

I'm very confused about how to launch JRuby from the console or by running a script.
Aptana looks for ruby on the PATH, but JRuby is launched with JRuby.
As far as I can tell it is not possible to launch JRuby as Ruby on Windows.

Has anyone found a way of using JRuby in Aptana on Windows?

On a Unix/OSX box I could use rvm to handle this. Pik on windows doesn't help though.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

错爱 2024-12-25 12:58:22

我遇到了同样的问题。在该网站的另一篇文章中找到了线索。在 Linux 或 Mac 上,您只需创建一个名为 ruby​​ 的符号链接到您的 jruby 可执行文件并使用它即可。如果 Windows 中没有这种优势(感谢 Bill!),您可以在 jruby bin 目录 (ruby.bat) 中创建一个包装器脚本,该脚本将有效地执行相同的操作(假设您的路径中已经有 jruby/bin)。它被发布在其他地方,仅引用“jruby”。我发现我必须包含 Aptana 的完整路径才能解析引用。

红宝石.bat:

@C:\devel\jruby-1.6.5\bin\jruby %*

I ran into the same problem. Found a clue in another post on this site. From Linux or Mac, you would just create a sym-link called ruby to your jruby executable and be done with it. Without that benefit in Windows (thanks Bill!), you can create a wrapper script in your jruby bin directory (ruby.bat) that will effectively do the same thing (assuming you already have jruby/bin in your path). It was posted elsewhere as just referencing "jruby". I found I had to include the full path for Aptana to resolve the reference.

ruby.bat:

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