set up Java proxy