<?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: Rafli Putra</title>
    <description>The latest articles on DEV Community by Rafli Putra (@rafliputraa).</description>
    <link>https://dev.to/rafliputraa</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%2F524739%2F8ce8b903-5d31-46b1-8b26-b892805940ff.png</url>
      <title>DEV Community: Rafli Putra</title>
      <link>https://dev.to/rafliputraa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rafliputraa"/>
    <language>en</language>
    <item>
      <title>Step-by-Step Guide: Installing Java JDK and Maven on a Mac using Homebrew</title>
      <dc:creator>Rafli Putra</dc:creator>
      <pubDate>Sat, 14 Jan 2023 07:15:42 +0000</pubDate>
      <link>https://dev.to/rafliputraa/step-by-step-guide-installing-java-jdk-and-maven-on-a-mac-using-homebrew-k24</link>
      <guid>https://dev.to/rafliputraa/step-by-step-guide-installing-java-jdk-and-maven-on-a-mac-using-homebrew-k24</guid>
      <description>&lt;p&gt;Java is a programming language that is widely used for developing applications, and Maven is a build tool that helps manage the dependencies and build process of your Java projects. In this post, I'll walk you through the process of installing the latest version of Java and Maven on a Mac using Homebrew.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Install Homebrew
&lt;/h2&gt;

&lt;p&gt;The first step is to install Homebrew. If you don't have it installed, open the terminal and enter the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Install Java
&lt;/h2&gt;

&lt;p&gt;Once Homebrew is installed, you can use it to install Java. To install the latest version of Java, enter the following command in the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew cask install java
$ brew cask install maven
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Verify the Java Installation
&lt;/h2&gt;

&lt;p&gt;Once the installation process is finished, ensure the installation is completed successfully with the following command:&lt;/p&gt;

&lt;h5&gt;
  
  
  Java:
&lt;/h5&gt;



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

&lt;/div&gt;



&lt;p&gt;Here is an example output of successful Java installation:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;openjdk version "15.0.1" 2020-10-20&lt;br&gt;
OpenJDK Runtime Environment (build 15.0.1+9)&lt;br&gt;
OpenJDK 64-Bit Server VM (build 15.0.1+9, mixed mode, sharing)&lt;/code&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Maven:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mvn -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is an example output of successful Maven installation:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)&lt;br&gt;
Maven home: /Users/rafliputraa/apache-maven-3.8.1&lt;br&gt;
Java version: 15, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home&lt;br&gt;
Default locale: en_ID, platform encoding: UTF-8&lt;br&gt;
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"&lt;/code&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>watercooler</category>
    </item>
  </channel>
</rss>
