Hi, I'm trying to package a groovy script as a jar with the help of gradle, I use this gradle config: http://pastebin.com/RFEhzMCp it builds fine, but when I try to run it with java -jar path_to.jar I get this error: Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes The only suggestions I found online applied when people repackaged jars, which is not my case. Any suggestion? Thanks Rb