How to use environment variables in your Eclipse project Run Configuration

Say you have some environment variables that you’d love to use as arguments of an executable in your project.

1. Go to “Run Configurations”

2. Click on the “Environment” tab.

3. Click the “Select” button.

4. A list with all of your environment variables will be shown. Choose the environment variables you need for this project/executable.

5. Use the variable using the following syntax ${env_var:MY_ENVIRONMENT_VARIABLE_HERE}

One thought on “How to use environment variables in your Eclipse project Run Configuration

Leave a Reply

Your email address will not be published. Required fields are marked *