fixing java permissions issue