An Eclipse plugin that reads a .env file from the selected project and applies its key/value pairs to Java Application Run Configurations for the selected project.(Environment variables).
- Right-click a project in Project Explorer
- Environment Variables → Apply .env to Run Configurations
- Adds variables to the launch configuration’s Environment map
- Does not auto-apply on Run/Debug (manual action by design)
- Looks for
.envin the selected project root - Parses lines in dotenv style:
KEY=VALUE- ignores blank lines and
# comments
Help → Install New Software…Add…→ select the update site
- Update site:
https://ankitx-sharma.github.io/Dotenv_eclipse-env-variable/updates/
- If you see “No categorized items”, uncheck:
- ✅ Group items by category
- Install and restart Eclipse
- Create a
.envfile in your project root - Create (or run once) a Java Run Configuration for your app
- Right-click the project:
- Environment Variables → Apply .env to Run Configurations
- Verify in:
Run Configurations… → (your app) → Environment
- Support multiple files (e.g.
.env.local,.env.dev) - Better conflict handling (e.g. “override existing” toggle)
- Tested with Eclipse 2026-03 (4.39) and Java projects.
MIT License