Ejemplo
protected
void
doGet(
HttpServletRequest
arg0,
HttpServletResponse
arg1) {
String
path = System.getenv(
"path"
);
}
Solución
En lugar de utilizar getenv(), utilice ServletConfig para pasar información de configuración a los servlets al arrancar y elimine las llamadas a gc(), exit(int) y runFinalization().