A direct method or class that will allow you to read NT system properties does not exist. However, it can be done as follows:
Write a simple batch command file with a dos command to echo the value of the environment variable to a text file, then read the content of the file using methods from File and FileReader classes.
public class rtl
public static void main(String args)