His problem is with the program files .
First, make sure your JDK folder is installed in Program Files or Program Files (x86) or in any other folder.
Then you should use the path to the bin folder in the ". Since the command line breaks the line in space. When you write it to" ", then it will be in the form of a whole line.
You are trying to execute these commands
set path=%path%;"C:\Program Files\Java\1.7.0_07\bin"
or
set path=%path%;"C:\Program Files(x86)\Java\1.7.0_07\bin"
It can help you get out of this.
source share