How to Install JDK in Windows 10/8/7 | Complete Guide

install jdk

JDK or Java Development Kit as the name suggests is a software development toolkit to develop Java applications. Various Java platforms like Java Platform, Standard Edition, Java Platform, Enterprise Edition, Java Platform, Micro edition released by Oracle Corporation implements JDK to develop software programs based on Java Language. I will not discuss Java in depth here, this post is a simple guide to install JDK.

Java as a programming language has various striking features and adopted by many well-known organizations. Even NASA Wind, a scientific application used by NASA is programmed in JAVA. Apart from that, JAVA is used to develop Android Applications. Thus JDK is an important software development toolkit and here in this post, we will learn the complete procedure to install JDK and.

Step by Step Guide to Install JDK

  • Step 1: Download JDK from here
  • Step 2: When the download is complete double-click on the exe(executable) file to start installation.download jdk
  • Step 3: Click Next on the Welcome wizard.download and install jdk

In the next window, you are allowed to choose the optional features and installation path. You can keep these intact.how to download and install jdk

  • Step 4: Click Next again and wait till the installation gets completed.install jdk

 

When you have completed the installation successfully your next task is to set the permanent path of JDK. Follow the tutorial below set the path.

Also Read: What is Java Development Kit (JDK)?

Also Read: How to Make Laptop Run Faster | 7 Tricks You Must Try

 

Set the Java Path

  • Step 1: Go to Computer/This PC, Right-click and select Properties.how to install jdk
  • Step 2: Click on “Advanced system settings“.install java
  • Step 3: Click on Environmental Variables.install jdk in windows
  • Step 4: Click New in the User variables section.install jdk 8
  • Step 5: Minimize the window and go to the bin folder of the Java installation path(usually C:\Program Files\Java\jdk1.8.0_161\bin).
  • Step 6: Right-click on the address bar and select Copy address.guide to install jdk
  • Step 7: Open the previous minimized window(Environment Variables).jdk installation
  • Step 8: Put the Variable name as “PATH
  • Step 9: Paste the copied path in the variable value.
  • Step 10: Click OK

That is it. You have successfully installed JDK in your PC. You can check it by the following method.

 

How to check Wheather JDK is installed in Your PC or Not?

Step 1: Press Windows+R button on your keyboard.

Step 2: Type “CMD” in the Run dialog box and press Enter.install java

Step 3: When you are in command prompt, type “javac” and press Enter.check java installation

Step 4: You will a get an output like this.how to install java

This confirms that you have installed JDK in your PC.

Now you can use any Java IDEs to develop Java programs or Android Applications.

Note:  Be careful while adding or modifying the path of an environment variable

Yes, you have to be very careful while adding a new environment variable or modifying them. Never touch the variable names or paths that you don’t really recognize. It may lead the operating system to corrupt.

 

Also Read: How to Install Eclipse IDE and Set Up Properly

Also Read: Choosing your Java IDE

 

The main tutorial ends here but if you are a curious person like me you may have several questions in your mind. For that reason, I have added some important key terms in the article. Still, if you have some query you may ask the same in the comment section.

 

What is Environment Variable

According to Wikipedia,

An environment variable is a dynamic-named value that can affect the way running processes will behave on a computer.

They are part of the environment in which a process runs. For example, a running process can query the value of the TEMP environment variable to discover a suitable location to store temporary files, or the HOME or USERPROFILE variable to find the directory structure owned by the user running the process.

 

 

Wondering What Java Development Kit Contents?

You have learned what is JDK but do you know what are the components it contents? Here are the programs that are included in JDK

  • appletviewer – this tool can be used to run and debug Java applets without a web browser
  • apt – the annotation-processing tool[4]
  • extcheck – a utility that detects JAR file conflicts
  • idlj – the IDL-to-Java compiler. This utility generates Java bindings from a given Java IDL file.
  • jabswitch – the Java Access Bridge. Exposes assistive technologies on Microsoft Windows systems.
  • java – the loader for Java applications. This tool is an interpreter and can interpret the class files generated by the javac compiler. Now a single launcher is used for both development and deployment. The old deployment launcher, jre, no longer comes with Sun JDK, and instead it has been replaced by this new java loader.
  • javac – the Java compiler, which converts source code into Java bytecode
  • javadoc – the documentation generator, which automatically generates documentation from source code comments
  • jar – the archiver, which packages related class libraries into a single JAR file. This tool also helps manage JAR files.
  • javafxpackager – tool to package and sign JavaFX applications
  • jarsigner – the jar signing and verification tool
  • javah – the C header and stub generator, used to write native methods
  • javap – the class file disassembler
  • javaws – the Java Web Start launcher for JNLP applications
  • JConsole – Java Monitoring and Management Console
  • jdb – the debugger
  • jhat – Java Heap Analysis Tool (experimental)
  • jinfo – This utility gets configuration information from a running Java process or crash dump. (experimental)
  • jmap Oracle jmap – Memory Map– This utility outputs the memory map for Java and can print shared object memory maps or heap memory details of a given process or core dump. (experimental)
  • jmc – Java Mission Control
  • jps – Java Virtual Machine Process Status Tool lists the instrumented HotSpot Java Virtual Machines (JVMs) on the target system. (experimental)
  • jrunscript – Java command-line script shell.
  • jstack – utility that prints Java stack traces of Java threads (experimental)
  • jstat – Java Virtual Machine statistics monitoring tool (experimental)
  • jstatd – jstat daemon (experimental)
  • keytool – tool for manipulating the keystore
  • pack200 – JAR compression tool
  • policytool – the policy creation and management tool, which can determine policy for a Java runtime, specifying which permissions are available for code from various sources.
  • VisualVM – visual tool integrating several command-line JDK tools and lightweight[clarification needed] performance and memory profiling capabilities
  • wsimport – generates portable JAX-WS artifacts for invoking a web service.
  • xjc – Part of the Java API for XML Binding (JAXB) API. It accepts an XML schema and generates Java classes.

Source

Author: Supriyo Mahato

I like to share what I know, want to learn what I don't.

Leave a Reply

Your email address will not be published. Required fields are marked *