在 Windows XP 上从 Aptana Studio 3 启动 JRuby
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题。在该网站的另一篇文章中找到了线索。在 Linux 或 Mac 上,您只需创建一个名为 ruby 的符号链接到您的 jruby 可执行文件并使用它即可。如果 Windows 中没有这种优势(感谢 Bill!),您可以在 jruby bin 目录 (ruby.bat) 中创建一个包装器脚本,该脚本将有效地执行相同的操作(假设您的路径中已经有 jruby/bin)。它被发布在其他地方,仅引用“jruby”。我发现我必须包含 Aptana 的完整路径才能解析引用。
红宝石.bat:
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: