add enc setting for java6 for mac