How to compile LibreOffice extension

I created a new Apache OpenOffice Calc Add-In project, and then added java libraries from /opt/libreoffice4.2/ure/share/java to fix compiler errors.

Then I right click on the project node and choose deploy and run extension or build or any other build option.

And then I always get this message:

ant -f /home/binnarywolf/NetBeansProjects/AddIn1 uno-run Target
“-do-jar-with-manifest” does not exist in the project “AddIn1”. It is
used from target “jar”. BUILD FAILED (total time: 0 seconds)