I just bought a new Macbook Pro to replace my old one. I documented the following steps to set it up for Java development.
1) Download iTerm2
2) Download color schemes for iTerm2
3) Download java from http://support.apple.com/kb/dl1572
4) Set up JAVA_HOME environment variable. On terminal, type the following commands
a) echo export “JAVA_HOME=\$(/usr/libexec/java_home)” >> ~/.bash_profile
b) source ~/.bash_profile
5) Install homebrew
on terminal, run the following command
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
6) Install maven
brew install maven
Run the following command to check the maven version
mvn -version
7) Download and Install Eclipse Kepler
Download the google java coding style xml for Eclipse
Run the command
svn checkout http://google-styleguide.googlecode.com/svn/trunk/ google-styleguide-read-only
You will find the eclipse java style xml at
google-styleguide-read-only/eclipse-java-google-style.xml
Go to Eclipse, and install the above eclipse-java-google-style.xml. Follow the below steps
Click on Window -> Preferences -> Java -> Code Style -> Formatter
import the google code style
import the google code style
- To install Eclipse Color Themes, get the following plugin http://eclipsecolorthemes.org/?view=plugin
8) Install Git
brew install git
9) Install Maven
brew install maven
10) Install Tmux
brew install tmux
You could use the following handy tmux.conf provided by Christian Pelczarski
You might also want to use to following useful applications on your Mac
Dropbox, Evernote, Wunderlist