imporve debian java compat