Add java source code  pack function