Type: Posts; User: JavaHater
how did you define dir variable? try also to remove the "static" keyword.