Skip to content

Commit

Permalink
Merge pull request #2221 from ivassile/ELY-2858
Browse files Browse the repository at this point in the history
[ELY-2858] Getting started instructions for MacOS X guide may need clarification
  • Loading branch information
fjuma authored Oct 4, 2024
2 parents fbe7028 + a48fbf0 commit 1bf8440
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 1bf8440

Please sign in to comment.