So, I am puzzled, both why 1.8 did not install properly and where is it? I can mangle the links to install it manually, if somebody can point me to where I might find it, or even what I could have possible done wrong while "clicking OK" during the install. That find(1) found the 1.7 installation, but not the 1.8. ![]() I even resorted to a comprehensive search after Spotlight failed to find it: % sudo find / -type d -name jdk1.\*.jdk System/Library/Frameworks/amework/Versions I have looked in the following locations: /Library/Java/JavaVirtualMachines Each installation method appears to work without issue, however, Java 1.8 is not to be found on my Mac. I have Java 1.7 installed and tried to install 1.8 - both through the Java control panel and manually downloading 1.8 (45) and running that. I prefer the javahome shell function below rather than adding new values to PATH.I have searched for answers this problem, but nobody seems to have such a basic problem as I have. Installing JDKs with brew also recommends adding /usr/local/opt/openjdkXX/bin to PATH. Setting the symlink after every installation step is important for the system Java wrappers to find the installed JDK. That includes JAVA LTS releases 17, 11, 8: # version 17īrew install ln -sfn /Library/Java/JavaVirtualMachines/openjdk-17.jdkīrew install ln -sfn /Library/Java/JavaVirtualMachines/openjdk-11.jdkīrew install ln -sfn /Library/Java/JavaVirtualMachines/openjdk-8.jdk On Mac you can install Java/JVM with brew‘s openjdk formulae. No time? jump straight to the javahome function ![]() ![]() This post includes Java LTS version 17 and shows how to switch between Java/JDK LTS versions 8, 11 and 17. Change Java version on Mac 11 BigSur & persist it is great.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |