jvm

leifericf 2022-01-02T16:08:10.002300Z

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) 2022-01-02T16:39:49.002800Z

A lot of people use jenv for this

👍 1
leifericf 2022-01-02T16:54:44.004700Z

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

leifericf 2022-01-02T17:26:17.005Z

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!