How can I get System variable value in Java?

Use the System.getenv(String) method, passing the name of the variable to read.

Leave a Comment