IntelliJ & JRuby: how to setup project?

落爺英雄遲暮 提交于 2019-12-10 15:17:22

问题


I've downloaded a trial version of IntelliJ 13 and I've installed the latest JRuby version for Windows.

I've searched thoroughly on the net, but have been unable to find any guidance as to how to setup a JRuby project in IntelliJ. I've chosen IntelliJ as opposed to RubyMine as it should have better support for Java/Ruby integration (see http://devnet.jetbrains.com/docs/DOC-1146).

So in short; how do I setup IntelliJ for a JRuby project - perhaps just a simple hello world example?


回答1:


so in short words, create new project, the select java, then hit next, on the next page select jruby and you should be all set

if your project is created already my configuration in general looks like

project -> sdk java module -> new module -> java -> jruby

this should automatically create a facet with jruby stuff and the syntax highlighting should work

hope it helps




回答2:


I found out you need to install the Ruby plugin for IntelliJ first (http://plugins.jetbrains.com/plugin/?id=1293). After that there are options to create JRuby projects.



来源:https://stackoverflow.com/questions/21032930/intellij-jruby-how-to-setup-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!