set a Java_home variable in Windows and Mac

To set a Java_Home variable in both Windows and macOS, follow the instructions below: Windows macOS After following these steps, the JAVA_HOME environment variable should be set to the specified JDK installation directory on both Windows and macOS.