On 1/5/2011 9:43 PM, alapatimailbox wrote: > I have written a Java Program to run a GPG Command using Java's exec > command like: > Runtime.getRuntime().exec(command);
Many Java programmers do this, but it is not what Oracle recommends. Check java.lang.ProcessBuilder instead. > If i run this command from terminal it is working fine . > But if i run this command from java program it is giving the following > error.The java program is executed from root users context.I tried setting > the ring key as well but the same error was coming. When you run it from the terminal, which user are you running as? When you run it from your IDE, which user are you running as?
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
