I want to export a package(.zip file) using java or flow ser

I can export it using right click on the package and export.

but I would appreciate, if some can help me writing a program which can export a package and save on to local disk.

i think u can create publishable zar files using services in admin folder (built in services.)

Could you please specify that exact service?