{"id":730,"date":"2019-07-07T14:29:28","date_gmt":"2019-07-07T14:29:28","guid":{"rendered":"http:\/\/kabiliravi.com\/?page_id=730"},"modified":"2019-07-21T13:48:25","modified_gmt":"2019-07-21T13:48:25","slug":"install-jdk-on-microsoft-windows","status":"publish","type":"page","link":"http:\/\/kabiliravi.com\/index.php\/software\/programming\/my-java-tutorial\/install-java\/install-jdk-on-microsoft-windows\/","title":{"rendered":"Install JDK on Microsoft Windows"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Install OpenJDK using installer<\/h2>\n\n\n\n<p>You can to following link and download binary package of different versions of java<\/p>\n\n\n\n<p><a href=\"https:\/\/jdk.java.net\/archive\/\">https:\/\/jdk.java.net\/archive\/<\/a><\/p>\n\n\n\n<p>You can download the latest version for example from <a href=\"https:\/\/download.java.net\/java\/GA\/jdk12\/33\/GPL\/openjdk-12_windows-x64_bin.zip\">here<\/a><br>(<a href=\"https:\/\/download.java.net\/java\/GA\/jdk12\/33\/GPL\/openjdk-12_windows-x64_bin.zip\">https:\/\/download.java.net\/java\/GA\/jdk12\/33\/GPL\/openjdk-12_windows-x64_bin.zip<\/a>)<\/p>\n\n\n\nngg_shortcode_0_placeholder\n\n\n\n<h2 class=\"wp-block-heading\">Install Oracle JDK<\/h2>\n\n\n\n<p>You have two options to install Oracle JDK on Windows: Manually or using Installer. You can install Oracle JDK by downloading it from here:<br><a href=\"https:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">https:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Oracle JDK Manually<\/h4>\n\n\n\n<p>Pick one of JDK versions from above link and look for and look for a file with <strong>jdk-xx.xx_xx_windows-x64_bin.zip<\/strong> format.<br>Make sure you accept Oracle License Agreement by checking <strong>Accept License Agreement&nbsp;<\/strong>radio button if you are OK with that. By default <strong>Decline License Agreement<\/strong> is selected and if you click the files listed there, it does not let you to download it. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"437\" src=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-zip.png\" alt=\"\" class=\"wp-image-753\" srcset=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-zip.png 611w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-zip-300x215.png 300w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-zip-210x150.png 210w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/figure>\n\n\n\n<p>After you download it, follow the instructions I explained for OpenJDK manual installation.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Oracle JDK using Installer<\/h4>\n\n\n\n<p>You can install Oracle JDK using Microsoft Installer bundle. In the same page that I explained above you can find an <strong>.exe<\/strong> file. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"441\" src=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-installer.png\" alt=\"\" class=\"wp-image-755\" srcset=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-installer.png 623w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-installer-300x212.png 300w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/download-oracle-jdk-installer-210x149.png 210w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<p>After downloading it, run it and follow its wizard to install it.<\/p>\n\n\n\nngg_shortcode_1_placeholder\n\n\n\n<p>If you already set JAVA_HOME or PATH environment variables and set them to a specific JDK path, make sure you set them to the JDK that is installed by installer.<\/p>\n\n\n\n<p>Using java -version you can check your default JDK. As you see here it is pointing to my OpenJDK I installed<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"512\" src=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/05.png\" alt=\"\" class=\"wp-image-763\" srcset=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/05.png 979w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/05-300x157.png 300w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/05-768x402.png 768w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/05-210x110.png 210w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p>Set JAVA_HOME and PATH variables, to Oracle JDK path<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"603\" src=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/06.png\" alt=\"\" class=\"wp-image-771\" srcset=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/06.png 661w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/06-300x274.png 300w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/06-210x192.png 210w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>After clicking OK on all opened dialogs for setting JAVA_HOME and PATH variables, make sure you closed and reopen Command Prompt or Powershell terminals, then type java -version, and you should be able to see Oracle JDK 12 installed known as Java HotSpot 12.0.1 version like this.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"512\" src=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/07.png\" alt=\"\" class=\"wp-image-773\" srcset=\"http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/07.png 979w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/07-300x157.png 300w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/07-768x402.png 768w, http:\/\/kabiliravi.com\/wp-content\/uploads\/2019\/07\/07-210x110.png 210w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Install OpenJDK using installer You can to following link and download binary package of different versions of java https:\/\/jdk.java.net\/archive\/ You can download the latest version for example from here(https:\/\/download.java.net\/java\/GA\/jdk12\/33\/GPL\/openjdk-12_windows-x64_bin.zip) Install Oracle JDK You have two options to install Oracle JDK on Windows: Manually or using Installer. You can install Oracle JDK by downloading it from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":609,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-730","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":13,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/730\/revisions"}],"predecessor-version":[{"id":775,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/730\/revisions\/775"}],"up":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/609"}],"wp:attachment":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/media?parent=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}