In this article, I will guide you how to enable Eclipse’s Java compiler to support Java 15 in Eclipse IDE version 2020-09. As you know, Java 15 was released on September 15th 2020 but Eclipse 2020-09 supports compilation of Java version up to 14.

To enable code compilation for Java version 15 in this version of Eclipse, you need to:

Make sure that you already did the first 2 steps above. Now in Eclipse IDE, go to menu Help > Eclipse Marketplace… and type “Java 15 support” into the Find textbox. You will see the result appears something like this:

install Java 15 support for Eclipse

Click the Install button for the result “Java 15 Support for Eclipse 2020-09 (4.17)”. Wait for a while, then you will see this screen:

confirm selected features java 15 in eclipse

Click Confirm button to install the plugin, and you have to accept the license agreement in the next screen. And finally choose to restart the IDE when asked.

Now in the project properties, you can choose the Compiler compliance level as 15 as shown below:

project properties java compiler level 15



Then you can write Java code that uses new features of Java 15. Enjoy!

You can watch the following video to see the steps in action:

 

You may be also interested:

 

Other Eclipse Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.



Add comment

   


Comments 

#2rohan2021-01-22 05:51
thanks bro. u saved my life
Quote
#1Para Parasolian2020-12-10 06:41
1. Excellent presentation of the issue and its solution.

2. It worked for me!!
Quote