Syntax error How to set JAVA_HOME for Java in Mac OS?

How to set JAVA_HOME for Java in Mac OS?



Assuming you have installed Java in \usr\local\java\jdk directory −

if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

Updated on: 2019-07-30T22:30:21+05:30

722 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements