I'm a longtime Java developer switching from Ubuntu to Mac: On my Linux development environment, I would untar different jdks to ~/opt/jdk and then setup a current soft link like this:
~/opt/jdk/jdk_1.7.0_51
~/opt/jdk/jdk_1.8.0_05
~/opt/jdk/current -> jdk_1.8.0_05
In ~/bin
, I had a java
soft link that would point to ~/opt/jdk/current/bin/java
If I wanted to switch JDKs for development, I would just switch the current
link.
On Mac, I can only download .dmg files that contain installers. If I run more than one, it seems like the latter overwrites the existing install? Can't I simply download binary archives like on Linux?