GPG not working for java application calls

Hey guys. I have a java procedure that works like an API to work with GPG for windows automatically. I see a lot of java API’s for GnuPG but they all seem to be for unix so I built my own.

The problem is I can’t get the command to work through the procedure, but I can manually copy/paste the command into the windows command prompt and it will work… are there settings I can look at to get this resolved?

Here is the command im trying to run…

gpg -o coded.SQL -r PaymentsGateway -e c:\uncoded.SQL