From the linked Javadocs:
envp
- array of strings, each element of which has environment variable settings in the format name=value, or null
if the subprocess should inherit the environment of the current process.
So just pass in null
for the second parameter, and the environment will be inhereted.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…