Example
public
static
void
main(
String
[] args){
System.out.println( System.getenv(
"PATH"
) );
//$NON-NLS-1$
}
Solução
Utilize java.lang.System.getProperty()
public
static
void
main(
String
[] args){
System.out.println( System.getProperty(
"PATH"
) );
//$NON-NLS-1$
}