eclipse set global environment for all projects

后端 未结 1 1822
北海茫月
北海茫月 2021-01-13 18:40

for each project, i able to set environment when i select \"run it as\" . can i set global environment that all project will inherit when run?

相关标签:
1条回答
  • 2021-01-13 18:46

    You can set environment variables in a script that starts Eclipse. These should be inherited by all child processes.

    [EDIT] Create a small script which contains this:

    export JAVA_HOME=....
    ....path-to-eclipse.../eclipse.exe
    

    Not sure about the ".exe" on Mac. Just put the absolute path of the eclipse executable in the line below the export and it should work. To make the script executable, use chmod +x scriptname

    0 讨论(0)
提交回复
热议问题