fix app prefs & install java w/ env script