Back to: Java Tutorials For Beginners and Professionals
Environment Setup for Java Application Development
In this article, I am going to discuss Environment Setup for Java Application Development step by step in the windows operating system. Please read our previous article, where we discussed Java Application Development Lifecycle (JDK, JVM, and JRE) in detail.
Download and Install Java JDK8
This Java Development Kit (JDK) allows you to code and run Java programs. It’s possible that you install multiple JDK versions on the same PC. But it’s recommended that you install only the latest version.
Download and Install JDK8 in Windows
Following are the steps to install Java in Windows :
Step1: Go to link https://www.oracle.com/java/technologies/javase-downloads.html and click on download JDK (for JAVA latest version) as shown in the below image.
Step2: Next,
- Accept License Agreement
- Download the latest Java JDK for your version (32 or 64 bit) of java for Windows.
Step3: Once the download is complete, run the exe for install JDK. Click Next.
Step4: Select the PATH for Java installation and click next.
Step5: Once the installation is complete click Close.
Set Environment Variables in Java: Path and Classpath
The PATH variable gives the location of executables like javac, java, etc. It is possible to run a program without specifying the PATH but you will need to give full path of executable like C:\Program Files\Java\jdk-13.0.1\bin\javac A.java instead of simple javac A.java. The CLASSPATH variable gives the location of the Library Files.
Following are the steps to set Environment Variables in Java :
Step1: Right Click on My Computer and select the properties.
Step2: Click on Advanced system settings.
Step3: Click on Environment Variables.
Step4: Click on the new Button of User variables.
Step5: Type PATH in the Variable name.
Step6: Copy the path of the bin folder which is installed in the JDK folder.
Step7: Paste Path of bin folder in Variable value and click on OK Button.
Note: In case you already have a PATH variable created in your PC, edit the PATH variable to
PATH = <JDK installation directory>\bin;%PATH%;
Step8: You can follow a similar process to set CLASSPATH.
Step9: Click on the OK button
Step10: Go to the command prompt and type javac commands.
If you see a screen like below, Java is installed.
Download and Install Eclipse to Run Java
Following is a step by step guide to download and install Eclipse IDE:
Step1: Open your browser and type https://www.eclipse.org/
Step2: Click on the Download button.
Step3: Click on the “Download 64-bit” button
Step4: Click on the “Download” button
Step5: Install Eclipse.
- Click on “downloads” in Windows file explorer.
- Click on the “eclipse-inst-win64.exe” file.
Step6: Click on “Run as administrator”
Step7: Click on “Eclipse IDE for Java Developers”
Step8: Click on the “INSTALL” button
Step9: Click on the “LAUNCH” button
Step10: Browse the workspace of your choice and click on the “Launch” button.
Step11: Click on the “Create a new Java project” link. And your Eclipse IDE is ready to use.
In the next article, we are going to Create our First Java Program. Here, in this article, I try to explain the step-by-step process for the Java Application Environment Setup for Development. I hope you enjoy this Java Application Environment Setup for Development article.