${USER} in Run Configuration | Program arguments


Hi all.

I have a run configuration and in there I have set something in the program arguments like:


I would expect intellij to change the ${USER} symbol into the actual username of whoever runs the config but it doesn't, it stays as a string.

Any idea how to set the current user in the program arguments?


Check your system environment variables, if you are on Windows, use http://www.rapidee.com/.

The default environment variable for the user name on Windows is USERNAME, not USER.

Double check you specify the environment variable that exists on your system.


Thanks. That sorted it.