in Code, Geeklife, Uncategorized

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}

Write a Comment


This site uses Akismet to reduce spam. Learn how your comment data is processed.