Running Rubymine with Java 7
I've installed java 7 (1.7.0_5 64-bit from Oracle) and selected it as the default java using the Mac Java Preferences. But when I launch Rubymine and look in the about box, it still shows java 1.6.0_33 64-bit server VM.
Is there a way to run Rubymine using java 7?
请先登录再写评论。
Not at the moment. Do you have any particular reason why you want it? (Note: you won't get better performance if that's what you expect.)
Thanks Dmitry, I was curious to see if there was any difference to performance (speed / memory usage). Can the JVM used by Rubymine is separate from the one used by Jruby?
Sure. When you run JRuby from RubyMine, it runs in a separate JVM, and it can be a different version.
Why would you not get a performance boost with RubyMine using Java 1.7? Also, why does Rubymine not default to using the system selected Java that is installed? I have:
∵ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
∵ which java
/usr/bin/java
yet RubyMine 4.5.4 will not utilize that version. Whether you think I should or not, how to I *make* RubyMine 4.5.4 use the installed java 1.7.0? Java 7 dramatically improves I/O, has many security updates that have also been optimized, has better XML support (which I, and several others I work with, utilize), has improved multithreading (Which I'd be *really* suprised if RubyMine did not take advantage of), as well as several other additions such as improved garbage collection.
How could RubyMine *not* have improved performance using *any* of these improvements?
Regardless, the question still remains, how do I make RubyMine use 1.7.0 since its not respecting either any of the JAVA_* environment variables when launched from Terminal, nor System Preferences / Java applet's settings where Java 7 has been set as the system default (as attested to by `which java` showing /usr/bin/java which is directly symlinked to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
Please provide information on how I can make RubyMine use the default java of Java 1.7.0.
Thank you.
Oracle Java 7 is packaged differently from Apple Java 6, and the Apple launcher which RubyMine 4.5 uses is not capable of running Java 7. RubyMine 5 will include a new launcher that does support running Oracle Java 7; it's also available in the current RubyMine 5 EAP builds.
A) How stable is the RM 5 EAP compared to RM 4.5.4?
B) Will the current 4.5.x license I have work within RM 5 EAP, or is it even needed since its an EAP?
A) It does not include many changes in the core features, so the stuff that worked in 4.5.4 should keep working in 5 EAP.
B) The EAP version does not need a license. Whether RubyMine 5 will work with your 4.5.4 license depends on the date when you bought it - a license includes all upgrades released within a year from the purchase date.
I renewed my upgrade subscription *today*. So I'm good until March of 2014.
Just wasn't sure if the license was needed for the EAP or if it would even work.
Thank you for the clarification.
Could you detail where in RM EAP 124.305 (Enoki) you can dictate to RM that it should use java-1.7 to run itself? I've been through every option in Preferences, and searched the documentation and can find nothing.
The About RubyMine box still shows it clearly using JDK 1.6_0_37
Attachment(s):
Screen Shot 2013-01-09 at 2.35.09 AM.png
Open Contents/Info.plist under the .app directory and change the JVMVersion to 1.6+ or 1.7*