I'm using Eclipse Mars, and am running an application with some VM arguments and have environment variables defined on the run configuration
TOMCAT_HOME c:\tomcat
I have the following in the Environment tab VM arguments:
-Dcatalina.home=${TOMCAT_HOME}
I get the following error:
Reference to undefined variable TOMCAT_HOME
How come I am specifying the variable in the run configuration but it is not working as a VM arg?
Edit:
Turns out that the answer is that you need to add a Classpath Variable from Window->Preferences menu. That's confusing.