• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Install JDK 11 on Windows (Configuring the PATH)

By Abhishek Ghosh November 14, 2019 4:15 pm Updated on November 16, 2019

How to Install JDK 11 on Windows (Configuring the PATH)

Advertisement

Here are the detailed steps on how to install Oracle JDK 11 on Windows and configure the PATH to make it working from the command line. Steps are not 100% the same for the JDK from IBM. In our earlier article, we have discussed about the JVM. JVM is a need for many tools for designing and development which does not need coding in Java. Unless you properly configure Java, trying to run the program will throw error 13. Oracle in recent time changed their licensing policy. In order to install JVM 11, you have to sign-up to download the installer. Although it does not cost anything, it is additional work. JRE (Java Runtime) is required for running Java programs. JDK (Java Development Kit) includes JRE plus the development tools needed for writing as well as running Java programs. You can download JDK 11 from here :

Vim
1
2
3
#
http://www.oracle.com/technetwork/java/javase/downloads/index.html
#

Run the installer which will look like something closer to jdk-11.0.5_windows-x64_bin.exe. JDK will be installed in C:\Program Files\Java\jdk-11.0.5. Open File Explorer to navigate to C:\Program Files\Java to check the files. You’ll find javac.exe inside the bin directory. That file is our need.

 

How to configure the PATH of JVM installation

 

Open Control Panel and search with “Advanced system settings”. A window will open with the “Advanced” tab active. You’ll notice the “Environment Variables” button at its bottom. Click it. It will open a bigger window. There will be “User variables” and “System Variables”.

Advertisement

---

How to Install JDK 11 on Windows

It will add the PATH to the “User variables”. That means, it remains under my user-named account. Some add the PATH to the “System Variables”. Click “New…” button and add the data like below :

Vim
1
2
3
4
5
6
=================================================
 
Variable name : PATH
Variable value : C:\Program Files\Java\jdk-11.0.5\bin
 
=================================================

Click the OK buttons to save the changes. This entry alone enough to do 90% works related to Java. Again, add another entry under “User variables” (like above) :

Vim
1
2
3
4
5
6
=================================================
 
Variable name : JAVA_HOME
Variable value : C:\Program Files\Java\jdk-11.0.5
 
=================================================

Click the OK buttons to save the changes. The above entry is optional as some IDE and programs seek the entry of JAVA_HOME. You should remember this addition. If this entry creates conflict in some program, remember to remove it.

Now, open Command Prompt. Here, we will check whether our settings are making to respond to commands correctly. Run these three commands one by one :

Vim
1
2
3
4
5
#
path
javac -version
java -version
#

path command will return what we have given as the variable value, i.e. PATH=C:\Program Files\Java\jdk-11.0.5\bin. If the others return meaningful output then your installation is fine.

 

Testing Compilation and Run

 

Create a file named Example.java in C:\Apps using Notepad. Be careful to save it as All files to avoid creating Example.java.txt. Copy-paste the below content :

Vim
1
2
3
4
5
public class Example {
   public static void main(String[] args) {
      System.out.println("This is an Example");
   }
}

I am not going into programming details. Java is like C++.
Run these commands from command prompt :

Vim
1
2
3
4
5
6
7
8
9
10
#
cd C:\Apps
dir
# compilation
javac Example.java
# check, there will be a class file now
dir
# run it
java Example
#

Delete the files to avoid confusion later with system files.

Tagged With jdk-11 0 5_windows-x64_bin exe , jdk 11 0 5 0x5 error installation , how to install jdk 11 on windows with powershell , C:/Program Files/Java/jdk-11 , jdk 11 configuration in windows , C:Program FilesJavajdk-11 0 5 , hoe run in jdk-11 011 , jdk 11 configure , jdk 11 set environment variable , jdk in windows path
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install JDK 11 on Windows (Configuring the PATH)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Windows 7 Right Click Menu Tips,Tricks and Tutorials : Index

    Windows 7 Right Click Menu Tips,Tricks and Tutorials those has been published within The Customize Windows till date is listed here along with description.

  • How to Install JDK 8 on Windows

    JDK 8 is often among the prerequisites of various developmental tools. Here are the steps to correctly install and configure the PATH.

  • Command Prompt Commands : Alphabetical list of all commands in Windows 7

    Command Prompt Commands in Windows 7 provides the user access to 180+ command line commands. Here is a list of 200 Command Prompt Commands in Windows 7.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy