Set java headless property