Use Different JDKs for IDE & Project
I'm running IDEA 8 & 9 on MacOS. Is there a way to have the IDE use 64-bit 1.6, and have the project files use and run in 1.5? I want the best performance out of the IDE, but I have to ensure the code is compiled & running under 1.5.
请先登录再写评论。
Yes there is. Configure your project's JDK on the "Project Structure" (File -> Project Structure or simply ctrl+shift+alt+S). You can also define different JDKs for each module on the module's dependency tab. You can specify the JDK IDEA uses by creating and setting an IDEA_JDK environment variable.