I want to unpack resources from my jar file. The structure of jar looks like this:
my.jar META-INF resources my.exe my.dll my
You seem to be writing Java... Not sure if this will get you round your problem, but the above could be written in Groovy as:
this.getClass().getResource( '/resources/my.exe' ).withInputStream { ris -> new File( destDir ).withOutputStream { fos -> fos << ris } }