Setting the JAVA_HOME and PATH on MacOS
问题 I want to execute build.xml file using ant. But I am having trouble with recognizing the path for ant and Java. I tried changing the location to the correct location in bashrc as well as tried changing it for current command window using following commands: export path=/usr/local/apache-ant/bin:"$PATH" echo 'export path=/usr/local/apache-ant/bin:"$PATH"' >> ~/.profile export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin:"$PATH" similarly echo to profile for