update tools.carrot,compatible with jdk1.6