IDEA 7.0 - fail to launch on Linux
Hi,
Congratulations to the IntelliJ IDEA Team!!.
Trying to run the new version on Linux, I get this error:
:/usr/local/idea/idea-7361/bin> ./idea.sh
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass2(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
I was able to run SELENA (7.0M2) on same box with no issues.
Anyone has any idea?
Thanks,
Erez.
请先登录再写评论。
You need Java 6.
Hmm, sorry did not noticed that.
Thanks.
I installed Java 1.6 and still get the same stack dump when starting Idea 7.0 -- on both Ubuntu Fiesty and Dapper.
What is the output if you type
java -version
on the command line?
java version "1.6.0"
Java (TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot (TM) Client VM build (build 1.6.0-b105, mixed mode, sharing)
Very strange.
Did you set the IDEA_JDK environment variable?
echo $IDEA_JDK
?
(I am not sure if the same environment variable is used on Linux as on Windows.)
doh!
My user environment variables file still had the JDK_HOME and JAVA_HOME set to the 1.5 JDK. Sorry to bother you with this. Thanks, your suggestion about checking the IDEA_JDK variable triggered what my problem was.