{"id":3177,"date":"2020-05-31T01:20:58","date_gmt":"2020-05-30T19:50:58","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=3177"},"modified":"2023-01-26T17:52:59","modified_gmt":"2023-01-26T12:22:59","slug":"how-to-install-java-jdk-in-kali-linux","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/","title":{"rendered":"How to Install Java JDK in Kali Linux"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Download the latest Java SE SDK version<\/h3>\n\n\n\n<p>Go to the following link and download jdk7. At the time of writing this guide, the jdk version was <strong>jdk-7u45-linux-x64. <\/strong>Note that I\u2019m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really!<\/p>\n\n\n\n<p>Following is what I\u2019ve used.<\/p>\n\n\n\n<p><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk7-downloads-1880260.html\">JDK-7u45-Linux-x64<\/a><\/p>\n\n\n\n<p>Again, at the time of writing this guide the available version was <strong>jdk-7u45-linux-x64.tar.gz<\/strong><\/p>\n\n\n\n<p>Download and save the file in \/root directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">UnTar the Archive and move to \/opt<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -xzvf \/root\/jdk-7u45-linux-x64.tar.gz\nmv jdk1.7.0_45 \/opt\ncd \/opt\/jdk1.7.0_45<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install and register binaries<\/h3>\n\n\n\n<p>This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">update-alternatives --install \/usr\/bin\/java java \/opt\/jdk1.7.0_45\/bin\/java 1\nupdate-alternatives --install \/usr\/bin\/javac javac \/opt\/jdk1.7.0_45\/bin\/javac 1\nupdate-alternatives --install \/usr\/lib\/mozilla\/plugins\/libjavaplugin.so mozilla-javaplugin.so \/opt\/jdk1.7.0_45\/jre\/lib\/amd64\/libnpjp2.so 1\nupdate-alternatives --set java \/opt\/jdk1.7.0_45\/bin\/java\nupdate-alternatives --set javac \/opt\/jdk1.7.0_45\/bin\/javac\nupdate-alternatives --set mozilla-javaplugin.so \/opt\/jdk1.7.0_45\/jre\/lib\/amd64\/libnpjp2.so<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Test<\/h3>\n\n\n\n<p>First of all, close your browser and re-open. You won\u2019t believe how many users actually forgets to do this step and later complains Java ain\u2019t working. I\u2019d advise to bookmark this site to be able to reopen these instructions quickly, or simply copy these into a leafpad\/vi\/text file.<\/p>\n\n\n\n<p>To check the version of Java you are now running<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">java -version<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Download the latest Java SE SDK version Go to the following link and download jdk7. At the time of writing this guide, the jdk version was jdk-7u45-linux-x64. Note that I\u2019m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really! Following is what I\u2019ve used. JDK-7u45-Linux-x64 Again, at the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[243],"tags":[268,246],"class_list":["post-3177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux","tag-java","tag-kali-linux"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Java JDK in Kali Linux | 24x7serversupport Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Java JDK in Kali Linux | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"Download the latest Java SE SDK version Go to the following link and download jdk7. At the time of writing this guide, the jdk version was jdk-7u45-linux-x64. Note that I\u2019m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really! Following is what I\u2019ve used. JDK-7u45-Linux-x64 Again, at the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-30T19:50:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-26T12:22:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"685\" \/>\n\t<meta property=\"og:image:height\" content=\"210\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/\",\"name\":\"How to Install Java JDK in Kali Linux | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1\",\"datePublished\":\"2020-05-30T19:50:58+00:00\",\"dateModified\":\"2023-01-26T12:22:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1\",\"width\":685,\"height\":210,\"caption\":\"Install Java JDK in Kali Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Java JDK in Kali Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Java JDK in Kali Linux | 24x7serversupport Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Java JDK in Kali Linux | 24x7serversupport Blog","og_description":"Download the latest Java SE SDK version Go to the following link and download jdk7. At the time of writing this guide, the jdk version was jdk-7u45-linux-x64. Note that I\u2019m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really! Following is what I\u2019ve used. JDK-7u45-Linux-x64 Again, at the [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-05-30T19:50:58+00:00","article_modified_time":"2023-01-26T12:22:59+00:00","og_image":[{"width":685,"height":210,"url":"https:\/\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp","type":"image\/webp"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/","name":"How to Install Java JDK in Kali Linux | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1","datePublished":"2020-05-30T19:50:58+00:00","dateModified":"2023-01-26T12:22:59+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1","width":685,"height":210,"caption":"Install Java JDK in Kali Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-java-jdk-in-kali-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Java JDK in Kali Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/05\/JDK.webp?fit=685%2C210&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=3177"}],"version-history":[{"count":2,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3177\/revisions"}],"predecessor-version":[{"id":3189,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3177\/revisions\/3189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/3571"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=3177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=3177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=3177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}