Last year I wasted my hours in resolving this error. This year it popped up again so decided to blog it.
There is a known issue if ITunes/QuickTime is installed onto the local machine that the deployment is occurring from. The problem appears to be with a classpath setting within windows; the \QTJava.zip is present and causes the JAVA_HOME property to become unset. To get around this problem, simply remove the QTJava/QT.zip from the CLASSPATH within the Environment Variables within Windows.