I am able to obfuscate my Application with ProGuard using Ant Scripts. I followed the steps as listed on: Obfuscating a NetBeans Java Application Project
But when I try to run the jar by double click or using java -jar myjarname.jar, it gives VM Error. However it executes by using java -cp myjarname.jar com.mypackage.myclass
Can u help me how to specify the manifest? Or let me know how to fix this issue?
Have you tried putting a file
MANIFEST.MFinto the root of your JAR with something like the following contents:FYI, Main-Class denotes the class that should be runned when the jar file is executed.