{"id":5894,"date":"2023-06-26T17:45:08","date_gmt":"2023-06-26T17:45:08","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=5894"},"modified":"2023-06-26T17:45:09","modified_gmt":"2023-06-26T17:45:09","slug":"how-to-install-java-with-apt-get-on-ubuntu-debian","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/","title":{"rendered":"How to install Java with &#8220;apt-get&#8221; on Ubuntu \/ Debian"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en.jpg\" alt=\"Java 8 11 Apt-Get Ubuntu Debian \" class=\"wp-image-5909\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Java is a popular programming language that is widely used for building various applications and software. If you are an <strong>Ubuntu 18.04, 20.04 or 22.04<\/strong> user and want to install Java using the <strong>apt-get<\/strong> package manager, this guide will walk you through the process. By following the steps outlined below, you&#8217;ll be able to install Java and start developing or running Java applications on your Ubuntu system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>Before we proceed with the installation, make sure you have the following prerequisites:<\/p>\n\n\n\n<ol>\n<li>An Ubuntu 18.04, 20.04 or 22.04 \/ Debian OS.<\/li>\n\n\n\n<li>Administrative access to the system (sudo privileges).<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-update-package-repository\">Step 1: Update Package Repository<\/h2>\n\n\n\n<p>The first step is to ensure that your package repository is up to date. Open a terminal window and run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update<\/code><\/pre>\n\n\n\n<p>This command will refresh the package lists on your system and retrieve information about the latest available packages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-install-java-using-apt-get\">Step 2: Install Java using &#8220;apt-get&#8221;<\/h2>\n\n\n\n<p>Ubuntu provides OpenJDK as the default Java Development Kit (JDK) in its package repository. To install OpenJDK using the apt-get package manager, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install default-jdk<\/code><\/pre>\n\n\n\n<p>This command will download and install the default version of OpenJDK available for your Ubuntu distribution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-verify-the-installation\">Step 3: Verify the Installation<\/h2>\n\n\n\n<p>Once the installation is complete, you can verify whether Java has been installed successfully by checking the version. To do this, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ java -version<\/code><\/pre>\n\n\n\n<p>If Java is installed correctly, you will see output similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">openjdk version \"11.0.12\" 2021-07-20\nOpenJDK Runtime Environment (build 11.0.12+7-Ubuntu-0ubuntu1.20.04)\nOpenJDK 64-Bit Server VM (build 11.0.12+7-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4-install-specific-java-versions\">Step 4: Install Specific Java Versions<\/h2>\n\n\n\n<p>If you require a specific version of Java, Ubuntu also provides the option to install different versions using the apt-get package manager. Here are the steps to install Java 11 or 8:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-java-11\">Install Java 11<\/h3>\n\n\n\n<p>To install Java 11, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install openjdk-11-jdk<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-java-8\">Install Java 8<\/h3>\n\n\n\n<p>To install Java 8, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install openjdk-8-jdk<\/code><\/pre>\n\n\n\n<p>After executing the respective command, the specified Java version will be downloaded and installed on your Ubuntu system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5-set-the-java-home-environment-variable\">Step 5: Set the Java Home Environment Variable<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1 : Manually<\/h3>\n\n\n\n<p>To ensure that Java is correctly configured on your system, it is recommended to set the&nbsp;<code>JAVA_HOME<\/code>&nbsp;environment variable. This variable specifies the location of the Java installation directory. To set the&nbsp;<code>JAVA_HOME<\/code>&nbsp;variable, follow these steps:<\/p>\n\n\n\n<p>Open the&nbsp;<code>.bashrc<\/code>&nbsp;file using a text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ nano ~\/.bashrc<\/code><\/pre>\n\n\n\n<p>Add the following line at the end of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ export JAVA_HOME=\"\/usr\/lib\/jvm\/default-java\"<\/code><\/pre>\n\n\n\n<p>This line assumes that the Java installation directory is&nbsp;<code>\/usr\/lib\/jvm\/default-java<\/code>. If you have installed Java in a different location, make sure to modify the path accordingly.<\/p>\n\n\n\n<p>Save the file and exit the text editor.<\/p>\n\n\n\n<p>To apply the changes, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p>This will reload the&nbsp;<code>.bashrc<\/code>&nbsp;file and update the environment variables.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: using <code>update-java-alternatives<\/code><\/h3>\n\n\n\n<p><code>update-java-alternatives<\/code>&nbsp;is a command-line tool that updates all alternatives belonging to one runtime or development kit for the Java language. It is part of the&nbsp;<code>java-common<\/code>&nbsp;package and is used to update the symbolic links from&nbsp;<code>\/usr\/bin\/java<\/code>&nbsp;and&nbsp;<code>\/usr\/bin\/javac<\/code>&nbsp;to point to the Java runtime or development kit of your choice. You can use it to switch between different Java versions installed on your system.<\/p>\n\n\n\n<p>To install it Run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install <span style=\"background-color: initial; font-family: inherit; font-size: inherit;\">java-common<\/span><\/code><\/pre>\n\n\n\n<p>Here is an example of how to use it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo update-java-alternatives --list\n$ sudo update-java-alternatives --set \/path\/to\/java\/version<\/code><\/pre>\n\n\n\n<p>You can replace&nbsp;<code>\/path\/to\/java\/version<\/code>&nbsp;with the path to the Java version you want to use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-6-test-java-with-a-simple-program\">Step 6: Test Java with a simple Program<\/h2>\n\n\n\n<p>To ensure that Java is functioning correctly on your system, let&#8217;s test it with a simple &#8220;Hello, World!&#8221; program. Follow these steps:<\/p>\n\n\n\n<p>Create a new file called&nbsp;<code>HelloWorld.java<\/code>&nbsp;using a text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ nano HelloWorld.java<\/code><\/pre>\n\n\n\n<p>Add the following code to the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"java\" class=\"language-java\">publicclassHelloWorld {\n    publicstaticvoidmain(String[] args) {\n       System.out.println(\"Hello, World!\");\n    }\n}<\/code><\/pre>\n\n\n\n<p>Save the file and exit the text editor.<\/p>\n\n\n\n<p>Compile the Java program using the&nbsp;<code>javac<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ javac HelloWorld.java<\/code><\/pre>\n\n\n\n<p>If there are no errors, you can run the program using the&nbsp;<code>java<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ java HelloWorld<\/code><\/pre>\n\n\n\n<p>The output should be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">Hello, World!<\/code><\/pre>\n\n\n\n<p>Congratulations! You have successfully installed Java using apt-get on your Ubuntu 20.04 or 22.04 system. You can now start developing and running Java applications on your machine. If you need a specific Java version, you can also install Java 10 or 9 following the provided instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>In this article, we have learned how to install Java on Ubuntu 20.04\/22.04 using the apt-get package manager. By following the step-by-step instructions, you should now have Java installed and ready to use on your Ubuntu system. Remember to keep your Java installation up to date to benefit from the latest features and security patches. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java is a popular programming language that is widely used for building various applications and software. If you are an Ubuntu 18.04, 20.04 or 22.04 user and want to install Java using the apt-get package manager, this guide will walk you through the process. By following the steps outlined below, you&#8217;ll be able to install ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69],"tags":[],"yoast_head":"\n<title>How to install Java with &quot;apt-get&quot; on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.\" \/>\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.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\" \/>\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 with &quot;apt-get&quot; on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-26T17:45:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-26T17:45:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to install Java with &#8220;apt-get&#8221; on Ubuntu \/ Debian\",\"datePublished\":\"2023-06-26T17:45:08+00:00\",\"dateModified\":\"2023-06-26T17:45:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\"},\"wordCount\":706,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\",\"name\":\"How to install Java with \\\"apt-get\\\" on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-06-26T17:45:08+00:00\",\"dateModified\":\"2023-06-26T17:45:09+00:00\",\"description\":\"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Java with &#8220;apt-get&#8221; on Ubuntu \/ Debian\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to install Java with \"apt-get\" on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations","description":"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.","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.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/","og_locale":"en_US","og_type":"article","og_title":"How to install Java with \"apt-get\" on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.","og_url":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-06-26T17:45:08+00:00","article_modified_time":"2023-06-26T17:45:09+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/06\/java_debian_ubuntu_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to install Java with &#8220;apt-get&#8221; on Ubuntu \/ Debian","datePublished":"2023-06-26T17:45:08+00:00","dateModified":"2023-06-26T17:45:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/"},"wordCount":706,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/","url":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/","name":"How to install Java with \"apt-get\" on Ubuntu \/ Debian - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-06-26T17:45:08+00:00","dateModified":"2023-06-26T17:45:09+00:00","description":"Learn how to install Java on Ubuntu 18.04\/20.04\/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-java-with-apt-get-on-ubuntu-debian\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to install Java with &#8220;apt-get&#8221; on Ubuntu \/ Debian"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5894"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=5894"}],"version-history":[{"count":8,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5894\/revisions"}],"predecessor-version":[{"id":5929,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5894\/revisions\/5929"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=5894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=5894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=5894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}