I’m having some trouble creating Z shell aliases to switch between different JVM versions on macOS (more specifically, to Java 8). I have posted https://stackoverflow.com/questions/70557354/unable-to-create-z-shell-alias-to-activate-java-8-openjdk-on-macos. If anyone has any suggestions on how to solve this, or alternative approaches, that would be greatly appreciated!
A lot of people use jenv for this
@alexmiller: Aha! So that's the Java equivalent of Virtualenv or Conda in Python. Thanks for the tip! I'm new to the world of Java, so I appreciate the advice.
Well, that was easy! I don’t know why it didn’t cross my mind to Google for “Java version manager” earlier. Could have saved me a lot of time today. Lesson learned! Thanks again for the help, @alexmiller. Much appreciated!