make the source to a jar and create sample