Remove java dependencies