Set java settings