If you don’t know about Eclipse IDE then let me tell you that Eclipse is an Integrated Development Environment uses for computer programming. It is most famous among Java developers because it is widely used for Java Development. Here in this article, we are going to discuss How to Setup Eclipse IDE on Windows 10 For Java Development.
Setting up Eclipse IDE for Java Development on Windows 10 is very easy. You just need to download and install two pieces of software one is Java JDK and another one is Eclipse IDE. So, first, let’s see how to download and install Java JDK on Windows.
How to Download Java JDK on Windows 10
Open any browser, search for download Java JDK. Open the link form oracle.com and download Java SE Development Kit 16 Windows x64 Installer file.
Now click on the download link and Accept License Agreement and click on jdk-16_windows-x64_bin.exe
Note:- If it redirects you to the Oracle account creation, simply create an Oracle account in order to download the Java JDK installer file. Account creation is completely free.
How to Install Java JDK on Windows 10
After the download has been completed follows these simple steps to install and setup Java JDK 16 on Windows 10.
Step 1: Open the Java JDK 16 exe file and it will open the installation wizard simply click on Next.
Step 2: On the next window, you will get the option to change the installation location. You can change your installation location but I will suggest you keep it to default and click on Next. After that Java JDK 16 will be installed on your Windows 10.
Step 3: The installation process will take some time, so wait until the installation process completes. After the installation process completed just click on “Closed“.
How to Setup Java JDK on Windows 10
By just downloading and installing Java JDK 16, Java will not work. To run and compile Java code, we need to set the environment variable for Java bin folder.
To set up Java JDK 16 environment variable follow these steps:
Step 1: Open C Drive > Program Files folder and look for Java folder and open it.
Step 2: Inside the Java folder you will find a jdk-16 folder, open it and open the bin folder, copy the path of bin folder.
Note:- Now you have to set the environment variable.
Step 3: For that Go to Control Panel > System and Security > System > Advanced System Setting > Environment Variables
Step 4: Under the System variable, you will find “PATH” just select it and click on edit. Now click on New and add the bin folder location, after that click on “OK“.
Now to check whether Java is successfully set up or not, open Command Prompt and type this two command “java -version” and “javac“.
By using ‘java -version‘ command, you can check the Java JDK version and ‘javac‘ command will help you to understand whether the Java compiler is set up or not.
javac is a compiler that helps you to compile your java file. If you find a bunch of statements in the command prompt that means Java JDK 16 is fully set up on your windows system.
How to Download Eclipse IDE For Java Development
Downloading an Eclipse IDE is very easy just open your browser, search for Eclipse IDE and open the link from eclipse.org, click on Download. It will download an Eclipse installer file.
After the download has been completed, follow the following steps to install it.
How to Install and Setup Eclipse IDE For Java Development
In this section, we’ll discuss the steps to install and setup the Eclipse IDE (Integrated Development Environment) on Windows 10 for Java Development.
Step 1: After the download has been completed open eclipse installer file.
Step 2: Now if you find any notification regarding update. Ee need to update the eclipse installer file before installing “Eclipse IDE for Java Developers”. For that simply click on the Hamburg menu, click on Update and accept the license agreement.
Note:- After the updates were installed, press OK to restart.
Step 3: If you don’t find any update notification then you can, click on Eclipse IDE for Java Developers. Click on “INSTALL” and accept the licence agreement in order to install Eclipse IDE 2021-03 for Java Developers. (An active internet connection in need to install Eclipse IDE).
Step 4: After the installation complete “LAUNCH” Eclipse IDE.
Creating Workspace Location
After the installation is completed launch eclipse IDE. By default, it will create a workspace location, if you want to change it you can change. I will suggest you keep it default then click on launch.
After all these, you are ready to use the software for your Java Project. Are you interested in Java Programming? If your answer is “Yes”, then you can check our Java Tutorial Playlist.
How to Create First Java Project using Eclipse IDE
Here are steps to create your first Java project using Eclipse IDE on Windows 10:
Step 1: Click on File > New > Java Project, name your project and click on “Finish“.
Step 2: Now name your module to create a new module-info.java file and click on “Create“.
Note:- Discouraged module name. By convention, module name usually start with a lowercase letter.
Step 3: Before you create your Java class file, you have to create “Package”. To create right-click on the src folder from the Package Explorer > New > Package, name your Java Package and click on Finish.
Note:- Discouraged package name. By convention, package name usually start with a lowercase letter
Step 4: Now to create a class file, right-click on the src folder from the Package Explorer > New > Class, name your Java Class file, select “public” modifier. After that select the “public static void main(String args)” method and click on Finish.
Note:- Type name is discouraged. By convention, Java type name usually start with an uppercase letter.
Step 5: Now you can write your java code after that to run your Java file click on “Run” from the toolbar or use shortcut key Ctrl+F11.
Hope we helped you with How to Setup Eclipse IDE on Windows 10 For Java Development. If you have any queries and want to know anything related to Java JDK and Eclipse IDE then please leave your comment, we are here to help you.