Skip to content

Commit

Permalink
[ELY-2858] Getting started instructions for MacOS X guide may need
Browse files Browse the repository at this point in the history
clarification
  • Loading branch information
ivassile committed Oct 4, 2024
1 parent fbe7028 commit a48fbf0
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions setup-elytron-guides/setup_elytron_macos.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,30 @@ because this is an alternate version of another formula.
If you need to have openjdk@11 first in your PATH, run:
echo ‘export PATH=”/usr/local/opt/openjdk@11/bin:$PATH”’ >> ~/.zshrc
----
.. Follow the instructions from the output you receive to create the symbolic link and add the path to the environment variables.

.. Follow the instructions from the output you receive to create the symbolic link:
+
[source,zsh]
----
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
----
.. Set `JAVA_HOME`:
+
[source,zsh]
----
echo ‘export JAVA_HOME="/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home"’ >> ~/.zshrc
----
.. Add the path to `JAVA_HOME` to the environment variables:
+
[source,zsh]
----
echo ‘export PATH=”/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/bin:$PATH”’ >> ~/.zshrc
----
.. Lastly, run `source <config file>`, substituting in your config file, to load the changes into the terminal.
+
[source,zsh]
----
source ~/.zshrc
----
. Now run `java --version` again. You should now successfully see the Java 11 version that was installed.

== Installing Maven
Expand Down

0 comments on commit a48fbf0

Please sign in to comment.