setting variables on java VM