Custom JDK for JRuby in IDEA + Ruby Plugin

When I run my Rails project that uses JRuby, IDEA starts
"c:\dev\intellij idea 9.0.2\jre\jre\bin\java.exe" -Xverify:none -da -Xmx500m -Xss1024k -cp ... -p 3000 -b 127.0.0.1 -e development
It works fine, but can I use java.exe from JDK that I specify, not the one that comes with IDEA?

3 comments

Hi,

When I run my Rails project that uses JRuby, IDEA starts
"c:\dev\intellij idea 9.0.2\jre\jre\bin\java.exe" -Xverify:none -da -Xmx500m -Xss1024k -cp ... -p 3000 -b 127.0.0.1 -e development
It works fine, but can I use java.exe from JDK that I specify, not the one that comes with IDEA?

Please use File | Project structure menu item, add your custom Java SDK and set it as a default one for your project.

Regards,
Oleg

0

> Please use File | Project structure menu item, add your custom Java SDK and set it as a default one for your project.

I already have this

.

And I have it as a module SDK as well.



This is how I run it



But this is what I get



Any thoughts?

0

Hello Pavel,

Thank you, you are right. I filed an issue - http://youtrack.jetbrains.net/issue/RUBY-6119

Workaround - specify "jruby.java.home" system property which points on correct sdk.

0

Please sign in to leave a comment.