Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • In your case as you have two 1.8 versions (1.8 and 1.8.0.252). It is more than likely that you should update their Contents/Info.plist file section JVMVersion. Read my more complete answer bellow for more details. Regards. Commented May 26, 2020 at 9:43
  • @NicolasDupouy thanks but I don't have two 1.8 version, if I run ` /usr/libexec/java_home -V` I get this Matching Java Virtual Machines (2): 11.0.7, x86_64: "Amazon Corretto 11" /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home 1.8.0_252, x86_64: "Amazon Corretto 8" /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home Commented May 26, 2020 at 9:46
  • Ok, then you should try export JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home'. Commented May 26, 2020 at 9:51
  • @NicolasDupouy, ok but can you tell me why jenv doesn't work? Commented May 26, 2020 at 9:59
  • 1
    @NicolasDupouy yes you are right 1.8.0.252 is what is defined in /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/Info.plist file section JVMVersion abt this Commented May 26, 2020 at 11:13