John Bachir
John Bachir

Reputation: 22721

How can I install and configure java for jruby on OS X?

What versions of Java can jruby work on?

Is there an advantage to having one version or the other?

How can I install and configure the best version on OS X?

Upvotes: 0

Views: 134

Answers (1)

echristopherson
echristopherson

Reputation: 7074

JRuby currently (in the 1.7.x versions) runs on Java 6 and up. Java 7 introduced a new bytecode primitive, invokedynamic, which has the potential of speeding up dynamic languages including JRuby; but as of JRuby 1.7.5, this is disabled under Java 7 because of some unresolved issues. It's expected to be reenabled when Java 8 is released around March 2014, although you can turn it on now if you really want to try it, using the jruby.compile.invokedynamic=true property; or you can use a beta version of OpenJDK 8). See this page on performance tuning for a little more information.

Upvotes: 1

Related Questions