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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With