Getting environment variable value in java

后端 未结 1 602
执念已碎
执念已碎 2020-12-14 15:23

An environment variable has been set in windows machine (windows 7) and trying to get the value of the variable from the following java code. However, it returns a null valu

相关标签:
1条回答
  • 2020-12-14 16:09

    This code snippet should not return null in order for your problem to be resolved...

    final String value = System.getenv("PE_CONF_PWD");
    
    0 讨论(0)
提交回复
热议问题