I had a similar problem while trying to deploy a J2EE application. After some investigations, and following the links provided above, I found that I am not setting the JAVA_HOME environment variable probably. It should point to right jdk directory, i.e javac.exe should exist in %JAVA_HOME%\bin directory.

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.