java code to generate java jar plugin