Friday, March 9, 2018

How to Set Path for Java In Mac

First step is to find where is java installed. For that open terminal and type the below command

This command will output the location of java installation directory something like this depending upon the version of jdk installed
Next step is to set PATH environment variable. Execute the below command in Terminal
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
export PATH=${PATH}:$JAVA_HOME/bin


1 comment:

ammu12 said...

Thanks for your great and helpful presentation I like your good service. I always appreciate your post. That is very interesting I love reading and I am always searching for informative information like this.Also Checkout: angular 4 training in chennai | angularjs training in chennai | angularjs best training center in chennai | angularjs training in velachery