IntelliJ project migrates to Java 11
The source code of the IntelliJ project was recently migrated to Java 11. We still have some modules which are compiled to be compatible with older Java versions to support running users’ projects under these versions. However most of the platform and plugin modules use Java 11 now, and the upcoming 2020.3 versions of all IntelliJ-based IDEs will require Java 11 to start.
What does it mean for you? If you develop a plugin, you can use new language features and APIs from Java 11, but only if the
since-build attribute in
plugin.xml is set to
203. If your plugin distribution needs to run on multiple versions of the IDE, for example
203, then you should remain on Java 8.
If you want to compile the intellij-community project, you need to configure a JDK named
corretto-11 pointing to an installation of JDK 11. It’s recommended to use Amazon Corretto JDK, but other distributions based on OpenJDK should work as well. You may download it directly from the Project Structure dialog. Note that there is no need to set up JDKs
IDEA jdk anymore,
corretto-11 is used to compile all the modules utilizing the cross-compilation feature for those which target older Java versions.
IDEA run configuration which starts the IDE from sources now runs it under the JetBrains Runtime from the IntelliJ IDEA you’re working in. This way we ensure that IDE started from sources get improvements and fixes which are included into JetBrains Runtime but aren’t available in other OpenJDK-based distributions.
Subscribe to Blog updates
Thanks, we've got you!
JetBrains Marketplace Celebrates 5 Years
Half a decade ago, JetBrains Plugin Repository officially transformed into JetBrains Marketplace. As we celebrate this milestone, we’d like to take this opportunity to reflect on the incredible journey we’ve taken together. TL;DR: Read this blog post to learn how you can join the ongoing celebrat…
Busy Plugin Developers Newsletter – Summer 2023
Read this blog post to discover what has come to JetBrains Marketplace this Summer!
Wayland Support for IntelliJ-based IDEs
For Linux users of IntelliJ-based IDEs, an exciting advancement is on the horizon – the upcoming support of the Wayland display server protocol. This update is set to bring a host of benefits, including solving the age-old fractional scaling problem and elevating desktop integration when working wit…