Bad version number in .class file
I keep getting this error when trying to launch the newest version of the RubyMine EAP (96.552). I am trying to do a vanilla install of RubyMine. Any ideas?
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] java.lang.UnsupportedClassVersionError: Bad version number in .class file
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.ClassLoader.defineClass2(Native Method)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.ClassLoader.defineClass(ClassLoader.java:775)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.security.AccessController.doPrivileged(Native Method)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.Class.forName0(Native Method)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at java.lang.Class.forName(Class.java:242)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at apple.launcher.LaunchRunner.loadMainMethod(LaunchRunner.java:55)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at apple.launcher.LaunchRunner.run(LaunchRunner.java:111)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
7/8/10 9:36:54 AM [0x0-0x74074].com.jetbrains.rubymine[8671] at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
7/8/10 9:36:54 AM com.apple.launchd[239] ([0x0-0x74074].com.jetbrains.rubymine[8671]) Exited with exit code: 1
7/8/10 9:36:54 AM com.apple.launchd[239] ([0x0-0x74074].com.jetbrains.rubymine[8671]) Exited with exit code: 1
请先登录再写评论。
Hello Jeff,
RubyMine 2.5 requires JDK 6.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Did that change recently? I had a previous version of RubyMine EAP running on this machine.
Hello Jeff,
Yes, this changed because we've switched to a newer version of the IntelliJ
Platform.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I appear to be getting the same error message with the latest EAP, but I am pretty sure that I am running the latest Java 6 release for OSX (10.5.8).
What other environment settings am I overlooking?
I ended up editing the Info.plist file in /Applications/RubyMine-96.552.app/Contents and changing the required JVM from 1.5+ to 1.6+.
From
<key>JVMVersion</key>
<string>1.5+</string>
to
<key>JVMVersion</key>
<string>1.6+</string>
That allowed me to launch Rubymine.