How to set Java Path in Mac OS?


Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.

Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH'

Updated on: 30-Jul-2019

849 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements