In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
In Mac OS X, you can set the environment variables in one of the following files :
A guide to show you how to install MongoDB on Mac OS X.
The JDK source code is packaged in a src.jar, and should be in the JDK/Home folder. However, some JDK versions in Mac OSX didn’t include the source code or Javadoc.
In Mac OSX, you can use sudo lsof -i :80 to find out what program is using or listening on port 80 :
By default, most Java web application servers are listening on port 8080, and it can easily cause the popular 8080 port conflict error. In Mac OSX, you can use sudo lsof -i :8080 | grep LISTEN to find out what program is listening on port 8080 :
In this tutorial, we will show you how to install Apache Ant on Mac OSX.
By default, there is no wget on Mac OS X.
They are the same file, /etc map to /private/etc
Edit this file /private/etc/hosts.
On Mac OSX, the default localhost folder is located at /Library/WebServer/Documents
Here is the .htaccess file.
In Java, we can combine RandomAccessFile and FileChannel to lock a file before writing.