How to Setup Java Environment

How to Setup Java Environment in Windows 10

Java is a Platform independent language which can run on any platform. Java is a pure Object oriented programming language , that makes us do anything we can do . Methodology that helps to organize complex program through the use of Inheritance , Encapsulation and Polymorphism.

As we know that Java is platform independent so it can run on any platform , so we need JDK toolkit to Run the Java program on our System.

The Java Development Kit (JDK) is a key platform provider for building applications, applets, and components using the Java programming language. Since the Java is Introduced it has been  the most widely used Java software development kit. 

You can Download the Java Development kit from the JDK toolkit  .

After Download the JDK you can install . If you are a Windows 7/8/10 user you can setup an environment for java .

Queries related to Java Environment setup:-

  1. How to set path in java
  2. How to check java version in cmd
  3. 'javac' is not recognized as an internal or external command, operable program or batch file.
  4. how to install jdk in windows 10
  5. jdk install

Here we solve all the above Queries related to setup java environment.

How To Set Path In Java

To set path in Java there are following steps:

Step 1: Install the JDK toolkit in local disk drive as your default location for for your O.S drive .
Step 2: Open the Drive where you install the JDK toolkit  as by default the JDK is install in O.S 
              Now open the location: C:\Program Files

Step 3: Now open Program Files

Step 4:After opening Program Files now open Java

Step 5: After opening Java  click on the jdk-15.0.1

Step 6:After opening jdk15.0.1 you get a bin file as shown above now open bin file.

Step 7: After opening bin file you get too much files and application now search for javac  and select the javac application click right click on it go to properties and copy the file location.

C:\Program Files\Java\jdk-15.0.1\bin

Step 8: Now come to your desktop and right click on This Pc or My computer go to properties (System properties) and now select Advanced System Settings.

Step 9: After opening Advanced System Settings you get a window select Advanced , in advanced click on the Environment variables.

Step 10: After opening Environment Variables , click path after that click edit , you can change the both path for current user or all user .
User variable for sheshu or System  variables

Step 11: After click on the edit a new window is open and in that you have to select the new option.

Step 12 : After click on the new option a new row is Created in the window and you have to paste the location of javac application , As above in Step 7 you copy the location of the javac file.

How to Check Java version in cmd (command prompt)

Step 13 : Now you have to check the successfully setup of the java environment. By using  command prompt .

window key + R -> write cmd

Write      javac -version

Step 14 : Press enter

Our latest version of jdk 15.0.1 is installed now you can write an run java program.

 How to Fix error 'javac' is not recognized as an internal or external command, operable program or batch file.

This error is come during the compilation of java program  because the java path is not set into environment variables , while getting this error you can check first that jdk is installed or not by writting this in command prompt  javac -version
If not installed , installed reapeat the above steps and again restart and then check. 

Post a Comment

Previous Post Next Post