Java dependence fix