We already have JDK 15 in place as it was released by Oracle on 15th Sept, 2020. We have JDK 15 installed in our system. But now the question is how can we make use of IDE to test the new features? You might be wondering to know that Eclipse community is also very fast in delivering the workaround of all your java related environmental problems. Here in this article we will learn about ‘How to setup JDK 15 environment in Eclipse’ and then start practicing the new features of JDK 15. Eclipse marketplace solution provides Java 15 support for Eclipse 2020-09 (4.17). Before getting hold on new features of JDK 15, let’s start working on ‘How to setup JDK 15 environment in Eclipse’.
Table of Contents (Click on links below to navigate)
What will you learn in this article?
1) How to set up JDK 15 environment in eclipse step by step ?
2) How to install Eclipse Marketplace in Eclipse ?
3) How to install any other plugin in eclipse ?
4) How to set a specific Java compiler version in eclipse ?
5) How to download JDK 15 in your system ?
1) First of all, make sure you have already installed JDK 15 in your system. If not, visit here & install the same.
2) To install the environment, please ensure you have the most recent version of Eclipse 4.17 IDE installed in your system. If not, kindly visit the link. You will have compiler support till JDK 14 in this downloaded eclipse. You can check it by navigating through Project -> Properties-> Java Compiler. Click on the drop-down of JDK Compliance, you will find only upto 14. To get 15 there, follow the below steps.
Steps to add JDK 15 Environment in Eclipse (eclipse jdk 15)
Follow below steps to configure JDK 15 environment in your eclipse. If you find any difficulty in between follow the screenshots provided after the steps.
1) Download the latest Eclipse from here ‘https://download.eclipse.org/eclipse/downloads/drops4/R-4.17-202009021800/’. As you will find many options to download, you have to select ‘eclipse-SDK-4.17-win32-x86_64’ link from ‘Eclipse SDK’ block. This is for Windows users. Similarly, you can select the respective link as per your operating system.
2) Install the Marketplace Client in Eclipse (Follow the link)
3) Go to eclipse marketplace (Help->Eclipse Marketplace) and click on it.
4) In the search bar paste ‘https://download.eclipse.org/eclipse/updates/4.17-P-builds/’ and click on enter, wait for a while to populate the list.
Note: You can also type ‘Jdk 15’ in the search bar and follow the steps, but it will take some more time to complete the process. Also above process is recommended by eclipse organization.
5) If you can’t find the JDK 15, Scroll down very below & click on the link ‘Browse for more solutions’ like in the screenshot below.
6) Once you click on the ‘Browse for more solutions’ link, a popup will get disappeared & results will be displayed in your eclipse itself as ‘Java 15 support for Eclipse 2020-09 (4.17)’
7) Click on Install and drag it to your workspace in the left side. That’s it!!!
8) Now restart the eclipse & you will find 15 on navigating through Project -> Properties-> Java Compiler. Click on ‘Enable Project Specific Settings’. Then Click on the drop-down of JDK Compliance, you will find 15 also.
9) Select ’15’ and click on ‘Apply’. That’s it…!
How to install Marketplace in Eclipse?
Follow below steps to to get Eclipse Marketplace installed in your eclipse. If you find any difficulty in between follow the screenshots provided after the steps.
1) From your Eclipse, navigate to Help > Install New Software from the main menu.
2) Select ‘http://download.eclipse.org/releases/photon’ in the Work with combo box.
3) Wait for component table to populate. Type “marketplace” in the filter text field.
4) In the section General Purpose Tools, select Marketplace Client.
5) Click Next to advance to the Install Details page. Click Next again.
6) Read and accept the license agreement and click Finish.
7) Wait for the installation to complete, and don’t forget to restart Eclipse.
8) Once this installation is over, you will be able to see Eclipse Marketplace on selecting Help from the main menu.
How to test JDK 15 features in Eclipse?
1) Create a new Java project in Eclipse.
2) Right click on the project and navigate to Build Path -> Configure Build Path
3) Click on libraries
4) Add libraries from the right
5) Set the installation path for JDK 15
6) Enjoy the testing of JDK 15 features.
That’s all about configuring & testing eclipse jdk 15 | eclipse java 15 environment in your system.
What are the new enhancements and features in JDK 15 ?
♥ In order to know ‘How to enable JDK 16 support in Eclipse’, kindly visit JDK 16 support in Eclipse.