22 public static void main(String[] args){
23 Map<String, String> envVar = System.getenv();
24 final String pat = envVar.get(
"Path");
26 System.err.println(
"Error in GetPath: Could not get environment variable.");
27 System.err.println(
"Note that this file is used for Windows only.");
30 final String[] ent = pat.split(
";");
31 for(
int i =0;
i < ent.length;
i++)
32 System.out.println(ent[
i]);
Class to write the path variable on Windows with one argument on each line.
static void main(String[] args)
Main method.