0

I'm trying to encrypt file.

Here is my command.

"gpg --yes --batch --cipher-algo AES256 --passphrase abcd123 --output "+"E:/Softwares"+"/" +"logfile"+".gpg --symmetric --cipher-algo AES256 "+"E:/Softwares/logfile.txt"

But am getting error like this:

java.io.IOException: Cannot run program "gpg": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)

Please anyone can help me what's going on?

I've used this command earlier to do encryption as well. but this time its giving problem.

Thanks !!

3
  • This sounds as if gpg is not on your $PATH any more. Commented Nov 23, 2016 at 19:47
  • @JensErat Thanks jens !! Is there any way I could make it work jen ? Commented Nov 24, 2016 at 4:31
  • If you know the path of GnuPG is fixed, I'd go for absolute paths, otherwise make sure to add the path GnuPG is installed to to your path variable. How to do this is for example explained in stackoverflow.com/q/1319286/695343 Commented Nov 30, 2016 at 18:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.