Fix Cat Java problem