search

Home  >  Q&A  >  body text

java - win10子系统设置环境变量

win10 内置的的子系统在/etc/profile设置java环境变量后,无法生效,每打开一个bash都有要执行. /etc/profile后才能生效。重启重装都不行。

怪我咯怪我咯2804 days ago713

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 10:56:14

    Create shortcuts
    C:WindowsSystem32bash.exe ~ --login -i

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:56:14

    I also encountered this situation several times in win10, and I had to do it again every time before it took effect.

    reply
    0
  • Cancelreply