1

Where does Eclipse store Environment Variables for java program? Does it store in our project directory? or Eclipse configurations?

dhruvarora
  • 11
  • 2
  • If you are asking about the Run Configuration the variables are stored in the launch configuration. – greg-449 Sep 29 '18 at 06:29
  • probably too late answer but I found them in project directory at ".settings/org.eclipse.cdt.core.prefs". Not for java but c++. – user3583807 Sep 16 '21 at 20:50
  • I fonud that for a spring boot application my env passed to the launch configured with the boot dasboard end up in a file under .metadata\.plugins\org.eclipse.debug.core\.launches\*.launch – user1708042 Nov 10 '22 at 09:31

1 Answers1

0

Environment Variables are attached to a "Run Configuration"(Run -> Run Configurations). Then you create a new Java Application run config, and will see Environment tab on the right panel.

Will Luo
  • 91
  • 1
  • 3