A quick tip for switching between JDK versions on macOS using shell aliases. By defining a bash alias that sets JAVA_HOME and updates PATH, developers can instantly switch to a specific Java version (e.g., Java 8) from the terminal without any additional tooling.

1m read timeFrom adambien.blog
Post cover image

Sort: