2

Do the below different JDK paths, that result from installation (on Mac) with the given different methods (possibly by any defaults they have), reflect or imply any differences (in functionality, access, configuration, or intended use of the JDK) across the different install mechanisms?

  • Even though below details involve openjdk [specifically], my broader intent is not vendor-specific to openjdk.
  • (One [tangential] example of a source of my curiosity, is that [Mac default] System Python should not be used by user - instead, user development should only be done with user-installed Python; and [fwiw] those two different Python installs have separate installed paths..)

(I hope I have all of the details correct below... :)

  1. brew install java
    • (using [just] homebrew)
    • installs at /usr/local/Cellar/openjdk/
      • (symbolic link created at /usr/local/opt/openjdk)
  2. brew install --cask adoptopenjdk
    • (using homebrew-cask)
    • installs at /Library/Java/JavaVirtualMachines/adoptopenjdk-<version number>.jdk/
  3. installing in/with IntelliJ IDEA
    • installs at ~/Library/Java/JavaVirtualMachines/adoptopenjdk-<version number>.jdk/
      • (note difference here [compared to 2^] being under user-home ~, not root /)

I think I know at least the below differences; but are there other relevant differences?

  • 2 vs 3 differ on 3 being accessible only to the given ~ current user, while I think 2 is available [system-wide] to all users
    • I think same difference on 1 vs 3?
  • 1 has the (noted^) symbolic link detail
cellepo
  • 4,001
  • 2
  • 38
  • 57

0 Answers0