When I run \"clean and build\" the .jar file that is being created only runs if the lib folder is at the same folder of the .jar file.
.jar
lib
user1016588's solution works for me. There's one typo: this line should be zipfileset src="dist/lib/commons-io-1.4.jar" excludes="META-INF/*"