If method one doesn't work, you can try this method
Note: If it does not work after modifying the environment variables, please restart the system