ERROR - java.lang.IllegalArgumentException: undefined variable:


Problem

java.lang.IllegalArgumentException: undefined variable: xxxx

Cause

Variable xxxx not defined.

Resolution

Make sure that the variable has been defined either as ClassPath variable or Environment Variable.

To check if this has been set as Class Path Variable.Click Here.

To check if this has been set as Environment Variable.

Go to Computer -> Right Click and select Properties -> Advance System Settings -> Advanced Tab -> Environment Variables.