79159264

Date: 2024-11-05 13:23:12
Score: 1
Natty:
Report link

Adrian Petrescu's answer is correct.
https://stackoverflow.com/a/22842806/10090030
Additionally, you can verify your changes by running the following command in the terminal:

print $JAVA_HOME

If the changes were applied successfully, you'll see:

/Library/Java/JavaVirtualMachines/jdk-xx.jdk/Contents/Home

If the configuration is incorrect, nothing will be displayed.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali Doran