Add new comment

Issue with encrypt option when building exe via Gradle

Hi,

I'm currently evalating jar2exe. I need to be able to integrate the creation of the exe and encryption of the class files into our Gradle build process. The application I'm trying to build is a windows GUI application running on 64 bit OS.

I looks quite straight forward. Currently I can create an exe (without encrypt option) and the exe runs fine from Gradle with the following command line passed as a Gradle task:

j2ewiz /jar "./myJar.jar" /o "./myJar.exe" /m "com.pt.cpa.CpaApplication" /type windows ...........  /config "property java.library.path=./lib"

(Unfortunately I couldn't paste the exact line into this text box, so I just provided a portion of the command line)

However, when I then run modify the above line by adding the option to encrypt the classes,  (just by adding the option "/encrypt") the build fails saying:

Process 'command cmd finished with non-zero exit value 43

I don't expect you to provide support regarding Gradle but I was just wondering if you have any idea why an exit value of 43 would be returned. The exe file is created but it will not run.

I can run the exact above command with the encrypt option from the command line and there are no issue. The exe is created with the encrypt option so jar2exe works fine running as expected. It's just when I try and run it via a Gradle task with the encrypt option, I see this problem.

Thanks,

- Pierce