Reputation: 77
I have a desktop application in Java, I am using Proguard for obfuscation, and Install4j. I am able to run the jar file of the application using the argument "-noverify" which was recommended by others who had the same issue. But I cannot run the exe file (added "-noverify" to the arguments in Install4j).
Any ideas please? thanks!
Upvotes: 1
Views: 209
Reputation: 718986
According to Troubleshooting section of the Proguard manual, the recommendations for VerifyError
are:
-dontoptimize
Running a Java application with -noverify
is an insecure hack ... but if you really need to resort to that you should be able to get Install4j to set JVM options in the generated launcher.
A common requirement is the capability to adjust the VM parameters of launchers after the installation has been completed or to determine the VM parameters at installation time depending on the environment like the target platform or some user selection in the installer.
For this purpose, a parameter file in the same directory as the executable is read and its contents are added to the list of fixed VM parameters. The name of this parameter file is the same as the executable file with the extension
.vmoptions
.
For more details; see The definitive guide to install4j.
Upvotes: 1