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 for Java Development on Windows 10.
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.
Also Read: How To Setup Visual Studio Code For Python
How to Download Java JDK 13
Open any browser, search for download Java JDK 13. Open the link form oracle.com and click on “Download Java Platform (JDK) 13“. It will redirect you to the download page from where you can download the Java SE Development Kit 13 installation file.
To download, first of all, we need to Accept License Agreement and we have to select our operating system. For Windows 10 click on jdk-13.0.1_windows-x64_bin.exe
Note:- If you use a 32-bit operating system then you can’t install Java JDK 13 because to install it we need a 64-bit operating system
Also Read: What are the New Features in Java JDK 13
How to Install Java JDK 13 on Windows 10
In this section, we’ll discuss how to install Java JDK 13 on Windows 10. Here we also included a video tutorial, if you find difficulties to follow the steps mentioned below.
After the download has been completed follows these simple steps to install and setup Java JDK 13 on Windows 10.
Step 1: Open the Java JDK 13 .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 13 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 13 on Windows 10
By just downloading and installing Java JDK 13, 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 13 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-13 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 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 statement in the command prompt that means Java JDK 13 is fully set up on your windows system.
To start with Java development you have to use Eclipse IDE. It is one of the most popular IDE (Integrated Development Environment) for Java Development. Eclipse IDE will help you to write and run the Java program.
How to Download Eclipse IDE
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 Eclipse IDE
In this section, we’ll discuss the steps to Setup Eclipse IDE for Java Development on Windows 10. Here we also included a video tutorial, if you find difficulties to follow the steps mentioned below.
Step 1: After the download has been completed open eclipse installer file.
Step 2: Now before installing “Eclipse IDE for Java Developers“, we need to update eclipse installer file. For that simply click on the Hamburg menu, click on Update and accept the licence agreement.
Note:- After the updates were installed, press OK to restart.
Step 3: Click on “Eclipse IDE for Java Developers“, Click on “INSTALL” and accept the licence agreement in order to install Eclipse IDE 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 names 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 names 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 names usually start with an uppercase letter.
Step 5: Now to run your Java file click on “Run” from the toolbar or use shortcut key Ctrl+F11.
Hope we helped you to Setup Eclipse IDE for Java Development on Windows 10 computer. 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.