add log4j for javalib