Goals:
- never upgrade Java with the GUI pkg installer again.
- never try to remember that
/Library/Java
is where JDKs go. - Just keep JDK8 and JDK9 up-to-date. Java is so stable, maybe these two major versions is all we need?
Note the assumptions in these goals. Making this a bit more generic would be nice.
I'm on a mac and I use the fish shell which I know is squarely in the edge case camp but I hope this is inspiring or useful to someone else because there's not much shell specific stuff here. I found jenv
which is going to help.
First, upgrading java with homebrew is pretty easy. The assumption is that java8 is stable and java (9) is still emerging. This assumption would likely change so it'd be nice to have this scripted out of this assumption. For now, I'm just trying to avoid graphical Oracle installers.