Am trying to run a .mpkg application from my java code :
public void runNewPkg(){ try { String command = \"sudo installer -pkg Snip.mpkg -target /App
I would actually try editing your /etc/sudoers file to not prompt for a password. If you use the NOPASSWD tag, you should be able to do that. An example entry would be:
sumitghosh3 ALL=(ALL) NOPASSWD: ALL