You need to set your JAVA_HOME variable. In general, you cannot build Java programs without specifying what Java distribution you are building them with.
From Oracle:
Quote:
Set JAVA_HOME:
Right click My Computer and select Properties.
On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
|