Fix JRE settings and access rules