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.
Labels:
None
4 Comments
comments.show.hideJun 21, 2008
Anonymous
Yes, and thank you all on behalf of all the Mac users for putting up with the 1.5 issue on our behalf
They have it now for Intel-based Macs, but still not for PPC based.
Oct 16, 2008
Vaclav Slovacek
Is there a way how to use JDK 1.6 for plugin development? At least for internal use. I'm playing around with OpenAPI to built-in support for a project I'm working on. The project uses some Java 1.6 features and limiting plugins to JDK 1.5 makes it impossible. Thanks.
Jan 12, 2009
Guy Mahieu
For those of you developing plugins for IntelliJ 8, there seem to be JDK 1.5 downloads for it as well:
8.0 http://download.jetbrains.com/idea/idea-8.0-jdk15.zip
8.0.1 http://download.jetbrains.com/idea/idea-8.0.1-jdk15.zip
Dec 10, 2009
WarnerJan Veldhuis
For those of you developing plugins with IntelliJ 9, read these documents on how to setup your IDEA-SDK:
http://www.jetbrains.org/display/IJOS/Writing+Plug-ins
http://www.jetbrains.net/devnet/thread/285573?tstart=0