<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Coolplay Development</title>
    <description>The latest articles on DEV Community by Coolplay Development (@coolplaydev).</description>
    <link>https://dev.to/coolplaydev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F895650%2Fefbbe4fc-e321-4c11-a401-374743df8720.jpg</url>
      <title>DEV Community: Coolplay Development</title>
      <link>https://dev.to/coolplaydev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/coolplaydev"/>
    <language>en</language>
    <item>
      <title>How to install the Java JDK on Linux (Debian and Ubuntu)</title>
      <dc:creator>Coolplay Development</dc:creator>
      <pubDate>Sat, 22 Oct 2022 15:11:47 +0000</pubDate>
      <link>https://dev.to/coolplaydev/how-to-install-the-java-jdk-on-linux-debian-and-ubuntu-2p8g</link>
      <guid>https://dev.to/coolplaydev/how-to-install-the-java-jdk-on-linux-debian-and-ubuntu-2p8g</guid>
      <description>&lt;p&gt;&lt;strong&gt;To be able to compile your Java code, you'll need the JDK (Java Development Kit) installed on your computer. Follow along to find out how to install the OpenJDK using only two simple commands!&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uNkkAJVe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7i04ljjjt4spwirm6ur.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uNkkAJVe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7i04ljjjt4spwirm6ur.jpg" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Check whether a JDK is already installed
&lt;/h2&gt;

&lt;p&gt;Sometimes, the Java Development Kit is already installed on some systems. To check whether you've already got it, run the following command in your terminal (&lt;strong&gt;CTRL+ALT+T&lt;/strong&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;javac -version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this command doesn't return an error but something like "javac ", you've already got the JDK.&lt;/p&gt;




&lt;h2&gt;
  
  
  Installing OpenJDK 💻
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The OpenJDK is a very popular open-source third-party version of the official OracleJDK. It offers the same functionalities as the official one.&lt;/em&gt;&lt;br&gt;
Before starting to install it, you should make sure that your system is up to date:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you've done that, you can start installing OpenJDK by running the following two commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install openjdk-18-jre
sudo apt-get install openjdk-18-jdk
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you probably noticed, we're also installing the JRE (Java Runtime Environment) to be able to execute Java programs.&lt;br&gt;
&lt;strong&gt;That's it!&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IfQKZFDf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0yke614tarxg3qskgz20.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IfQKZFDf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0yke614tarxg3qskgz20.jpg" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Hint
&lt;/h2&gt;

&lt;p&gt;If you want to read more on this topic and find out how to install the official Oracle JDK on Linux and on Windows, you can have a look at my &lt;a href="https://coolplaydev.com/how-to-install-java-jdk"&gt;complete guide&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>linux</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
