Search code examples
jspjakarta-eebuildglassfish-3netbeans-7

Build Java web project issue with lib folder


I'm building my web project right now and I'm having the following problem. The jar is not in the lib folder. This is the error message I get:

init:
undeploy-clean:
deps-clean:
do-clean:
Deleting directory C:\Users\Laptop\Documents\NetBeansProjects\eAnalytics\build
C:\Users\Laptop\Documents\NetBeansProjects\eAnalytics\nbproject\build-impl.xml:1066: Unable to delete file C:\Users\Laptop\Documents\NetBeansProjects\eAnalytics\build\web\WEB-INF\lib\activation.jar
BUILD FAILED (total time: 9 seconds)

Any ideas why this is happening and how can I solve it.


Solution

  • It could be that

    • you are on a folder beyond this path or,
    • have one or more files open from a folder beyond this path.

    C:\Users\Laptop\Documents\NetBeansProjects\eAnalytics\build\

    close the windows explorer (if you have the folder open) or close the file(s) if you have any open

    and re-run your script.