Esempio

public static void main( String[] args ){
System.out.println( System.getenv("PATH") ); //$NON-NLS-1$
}

Soluzione
Utilizzare java.lang.System.getProperty()

public static void main( String[] args ){
System.out.println( System.getProperty("PATH") ); //$NON-NLS-1$
}