Fixed: Under Mac + JDK7, java.home is set to /Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents/Home/jre instread of /Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents/Home/, which may cause lack of javac if set env JAVA_HOME to java.home