How to Add Java 15 Support for Eclipse 2020-09
- Details
- Written by Nam Ha Minh
- Last Updated on 20 October 2020   |   Print Email
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:
- Install a distribution of JDK 15 (OpenJDK or Oracle JDK). Reference: Download and Install OpenJDK 15.
- Configure Eclipse IDE to run on JDK 15. Reference: How to run Eclipse under different Java version.
- Install a plugin called “Java 15 Support” for Eclipse.
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:
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:
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:
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:
- What are new features in JDK 15?
- Download and Install OpenJDK 15
- How to run Eclipse under different version of JDK or JRE
Other Eclipse Tutorials:
- How to import existing projects into Eclipse workspace
- How to create, deploy and run Java Servlet in Eclipse
- How to generate JAR file in Eclipse
- How to create WAR file for Java web application in Eclipse
- How to create Ant build file for existing Java project in Eclipse
- How to generate Javadoc in Eclipse
- How to create Java web project with Maven in Eclipse
- 25 Eclipse Shortcut Keys for Code Editing
- How to Add Copyright License Header for Java Source Files in Eclipse
- How to monitor HTTP requests and responses using TCP/IP Monitor in Eclipse
Comments
2. It worked for me!!