IntelliJ starts app server with Java 7 even though JDK 6 is configured as the project SDK
Hi everyone,
I'm running IntelliJ 12 on Mac OS X and have recently installed Oracle JDK 7. My IntelliJ project is configured to use JDK 1.6. When starting JBoss 5.1 from IntelliJ, it starts with Java 7 even though the project SDK is JDK 1.6. My JAVA_HOME variable also points to my JDK 1.6 installation.
What configuration do I need to modify to instruct IntelliJ to start JBoss with JDK 1.6?
Thanks
Etienne
请先登录再写评论。
Hello,
IDEA 12 always runs JBoss under the same JVM it is itself running on, so as a workaround you can start IDEA with java 6. Look at https://intellij-support.jetbrains.com/entries/23455956 for details.
Note that the IDEA 13 allows to configure the JVM for JBoss (and all the app servers where it makes sense) independently, so with IDEA 13 you would be able to run server under project SDK or under any other SDK registered at IDEA.
Regards,
Michael
Thanks for the answer. Much appreciated. I'll upgrade to IDEA 13 soon, that should make these things easier.
Etienne