fwiw you might want to getPosix().chdir(dir).  In non-native mode it will set this property and in native mode it will actually change chdir.  I have never quite figured out how safe chdir is in a JVM process though...