The Linux and Windows versions of IntelliJ IDEA 7.0, 8.0 and 9.0 are built with JDK 1.6. However, the Mac OS X 10.5 version of JDK 1.6 is 64-bit only, and running IDEA under a 64-bit JDK causes much larger memory consumption. Because of that, the MacOS X version of IntelliJ IDEA 7.0 and later is built with JDK 1.5 and runs with it by default.
This also affects plugin developers: in order for version 7.0 and later plugins to be compatible with MacOS X, they need to be compiled with JDK 1.5.
In order to build JDK 1.5 compatible plugins on Windows or Linux, please follow these steps:
- Download and install JDK 1.5 from http://java.sun.com (if you haven't done so already)
- Download the JDK 1.5 distribution of IntelliJ IDEA:
- version 7.0: http://download.jetbrains.com/idea/idea-7.0-jdk15.zip
- version 8.0: http://download.jetbrains.com/idea/idea-8.0-jdk15.zip
- version 8.1: http://download.jetbrains.com/idea/idea-8.1-jdk15.zip
- version 8.1.3: http://download.jetbrains.com/idea/idea-8.1.3-jdk15.zip
- version 9.0.1: http://download.jetbrains.com/idea/ideaIU-9.0.1-jdk15.zip
- Unpack the .zip file to a separate directory
- Create an IntelliJ IDEA SDK. Specify the directory to which you unpacked the .zip file as the home directory, and the JDK 1.5 as the internal Java platform
- Use that JDK in your plugin project.