finalize work on java opts