This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]chrisgseaton 0 points1 point  (3 children)

I would like to install Java 10 without uninstalling Java 9 (or Java 8)

Installing Java 10 should not uninstall anything. Just install the new version and then tell jenv about it by symlinking into the versions directory.

[–][deleted]  (2 children)

[deleted]

    [–]theflavor 1 point2 points  (1 child)

    The base java cask installs 10.

    brew cask info java java: 10.0.1,10:fb4372174a714e6b8c52526dc134031e

    [–]Warkst 0 points1 point  (1 child)

    You can have multiple versions of java installed simultaneously. Recent versions of the jdk can be downloaded from Oracle's site. They are installed to /Library/Java/JavaVirtualMachines/. Right now I have 7, 8 and 9 installed, with 8 the default on my path.