<?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: 奕伟 蒋</title>
    <description>The latest articles on DEV Community by 奕伟 蒋 (@__1c1b7f036f4faee450ed).</description>
    <link>https://dev.to/__1c1b7f036f4faee450ed</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%2F1640263%2F9b727bfa-53a8-42eb-b7dd-861acfe834e2.png</url>
      <title>DEV Community: 奕伟 蒋</title>
      <link>https://dev.to/__1c1b7f036f4faee450ed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/__1c1b7f036f4faee450ed"/>
    <language>en</language>
    <item>
      <title>Install JDK11(MACOS)</title>
      <dc:creator>奕伟 蒋</dc:creator>
      <pubDate>Mon, 17 Jun 2024 15:39:09 +0000</pubDate>
      <link>https://dev.to/__1c1b7f036f4faee450ed/install-jdk11macos-8pi</link>
      <guid>https://dev.to/__1c1b7f036f4faee450ed/install-jdk11macos-8pi</guid>
      <description>&lt;h2&gt;
  
  
  1.download installation package
&lt;/h2&gt;

&lt;p&gt;(macOS version end with .pkg) &lt;br&gt;
&lt;a href="https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.19+7/OpenJDK11U-jdk_x64_mac_hotspot_11.0.19_7.pkg"&gt;download link&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.install jdk11
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;open the '.pkg' file&lt;/li&gt;
&lt;li&gt;follow the installation prompts to install&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3.configuring environment vaiables
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;open the terminal, run the fllowing command to confirm the installation path
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/usr/libexec/java_home -v 11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;edit '~/.zshrc' or '~/.bash_profile' file，add the following content
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export JAVA_HOME=$(/usr/libexec/java_home -v 11)
export PATH=$JAVA_HOME/bin:$PATH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;save and exit the file, use the following command to make the configuration effective
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.zshrc
or
source ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4.verify
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;check 'JAVA_HOME' variable
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;check java version
&lt;/li&gt;
&lt;/ul&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;ul&gt;
&lt;li&gt;check javac version
&lt;/li&gt;
&lt;/ul&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;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpbfdoj7nbnn7ou2e4ur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvpbfdoj7nbnn7ou2e4ur.png" alt="Image description" width="800" height="129"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
