Make sure you do not use the trailing semicolon: This will not work:
set JAVA_HOME=C:Program Files (x86)Javajdk1.6.0_29;This will:
set JAVA_HOME=C:Program Files (x86)Javajdk1.6.0_29