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?