简体   繁体   中英

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?

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.

Eclipse's environment will inherit from the user executing it. Depending on your OS, you should have a command line tool to tell you.

You can also look at the configuration:

Helios

  • Help menu -> About Eclipse
  • Installation Details button
  • Configuration tab

On Windows, if you have Sysinternals Process Explorer installed - which I would strongly suggest any developer do - then you can:

  1. Use the target icon (at the top of Process Explorer) and click on the Eclipse window which will select the Eclipse Process ID in the Process table
  2. Right-click on the selected Eclipse entry and select Properties... from the context menu
  3. Click on Environment

On Linux

  1. If you need the PID, then use the following and click on the Eclipse window: xprop | grep -i pid xprop | grep -i pid
  2. Replace ${PID} with the PID of the Eclipse Process ID: strings /proc/${PID}/environ

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM