Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I look at the current environmental variables that eclipse IDE is using?

I know that I can just run a program with

System.out.println(System.getEnv()); 

but I would like to just check them without having to do that. Any Ideas?

like image 417
Grammin Avatar asked Aug 01 '11 13:08

Grammin


People also ask

How do you view environment variables?

On the Windows taskbar, right-click the Windows icon and select System. In the Settings window, under Related Settings, click Advanced system settings. On the Advanced tab, click Environment Variables.

Where are environment variables stored in Eclipse?

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.

How do I know where environment variable is set?

In the command window that opens, enter echo %VARIABLE%. Replace VARIABLE with the name of the environment variable you set earlier. For example, to check if MARI_CACHE is set, enter echo %MARI_CACHE%. If the variable is set, its value is displayed in the command window.


1 Answers

There is actually a way to see the env vars. It is not implemented as a function, but part of other tasks.

You can right click on any projects in Package Explorer, then click

Run As -> Run Configurations. And here, in tab Environment -> Select...

Here you go. The list of system env Eclipse inherited are shown here.

like image 174
An Chin Avatar answered Sep 17 '22 16:09

An Chin