Fork me on GitHub
#jvm
<
2022-01-02
>
leifericf16:01:10

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!

Alex Miller (Clojure team)16:01:49

A lot of people use jenv for this

👍 1
leifericf16:01:44

@U064X3EF3: 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.

leifericf17:01:17

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, @U064X3EF3. Much appreciated!