JDK 7 and IntelliJ 10.5.1 don't play nice together
Hi, I've just installed 10.5.1 and thought to upgrade my java as well. However after doing this I have several problems. My main issue is that I cannot compile using JDK 7 and UI Designer. I get the error "Unsupported class version error" pointing to my extension of JPanel. I think this is compiled with JDK 7 but the rest of the UI Designer parts are compiled with JDK6. How can I switch this? I see only JDK 6 as a part of the IntelliJ file structure.
I also found that it is impossible to run swing with x64 JREs (I'm using Vista), however it compiles fine with x64 JDKs. Does anyone know how to get x64 JREs to run swing?
Best regards,
Mikael
请先登录再写评论。
Hello Mikael,
To work with components built with JDK 7 in the UI Designer, you need to
run IntelliJ IDEA itself under JDK 7. (The JDK that it has been compiled
with, as well as the 32/64 bit difference, does not matter.)
In order to do that, you need to define the IDEA_JDK environment variable
and point it to your JDK 7 installation.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"