Alex Rivera | Logout

How can I include external jar on my Netbeans project

Asked 2012-05-31T13:26:46.253
23

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.

So if I move the jar file to the desktop and leave the lib folder in the dist folder, the jar file will give me an exception.

How can I deal with this problem?

Edit
Report

1 Answer

1

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/*"

answered 2013-04-17T19:33:52.067

Your Answer