JAVA_HOME "bug"
You have to point JAVA_HOME to this path: 

C:\android\Java\jdk1.8.0_05
so I trying to build project for cocos2d-x. I'm currently at cmd and when I type python android-build.py -p 19 cpp-tests it start making project but then I get error that build failed. Problem is bescause it can't find javac compiler. 

"Perhaps JAVA_HOME does not point to the JDk. It is currently set to
  "c:/Program Files/Java/jre7"

Problem is bescause in system variables I made new variable called JAVA_HOME and it is pointed to C:\android\Java\jdk1.8.0_05\bin but still I getting that error. What to do guys?