Java Compilation error

0

I am currently creating a web project with java in netbeans, at the moment of giving it to compile, it throws me the following error

  

ant -f C: \ Users \ User \ Documents \ NetBeansProjects \ Web Application -Dnb.internal.action.name = run -Ddirectory.deployment.supported = true -DforceRedeploy = false -Dnb.wait.for.caches = true -Dbrowser.context = C: \ Users \ User \ Documents \ NetBeansProjects \ Web Application run   init:   deps-module-jar:   C: \ Users \ User \ Documents \ NetBeansProjects \ Web Application \ nbproject \ build-impl.xml: 856: The following error occurred while executing this line:   java.io.FileNotFoundException: C: \ Users \ User \ Desktop \ Developer_of_Applications \ build.xml (The system can not find the specified file)       at java.io.FileInputStream.open0 (Native Method)       at java.io.FileInputStream.open (FileInputStream.java:195)       at java.io.FileInputStream. (FileInputStream.java:138)       at org.apache.tools.ant.helper.ProjectHelper2.parse (ProjectHelper2.java:250)       at org.apache.tools.ant.helper.ProjectHelper2.parse (ProjectHelper2.java:178)       at org.apache.tools.ant.ProjectHelper.configureProject (ProjectHelper.java:93)       at org.apache.tools.ant.taskdefs.Ant.execute (Ant.java:392)       at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:293)       at sun.reflect.GeneratedMethodAccessor299.invoke (Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)       at java.lang.reflect.Method.invoke (Method.java:498)       at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)       at org.apache.tools.ant.Task.perform (Task.java:348)       at org.apache.tools.ant.Target.execute (Target.java:435)       at org.apache.tools.ant.Target.performTasks (Target.java:456)       at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1405)       at org.apache.tools.ant.Project.executeTarget (Project.java:1376)       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets (DefaultExecutor.java:41)       at org.apache.tools.ant.Project.executeTargets (Project.java:1260)       at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run (BridgeImpl.java:286)       at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:555)       at org.netbeans.core.execution.RunClassThread.run (RunClassThread.java:153)   BUILD FAILED (total time: 0 seconds)

It throws me that the error is in these lines of code that if I delete it also gives me error

         CLEANUP SECTION
        -->
<target depends="init" name="deps-clean" unless="no.deps">
    <ant antfile="${project.DDA}/build.xml" inheritall="false" target="clean"/>
    <ant antfile="${project.DDA-1}/build.xml" inheritall="false" target="clean"/>
</target>

I do not even know how to look for this error, thank you very much, the project is newly created,

If I clean the solution, I get this same error

    
asked by Bruno Sosa Fast Tag 07.12.2017 в 00:34
source

1 answer

1

Well at first glance the error is the following, java.io.FileNotFoundException , did not find the file, what you can do is first see where the file you are going to invoke is located, in the main root of your project ?, in several internars folders ?, as I can not see the file structure I'll throw ideas like going back to a folder " ../$ {proyect.DDA} /buid.xml" , when these things happen you have to see from the top the structure of your project, and there you see if you go forward with the bars, or back ../, I hope it is that, and but to keep looking ..

Hugs.

    
answered by 07.12.2017 / 03:51
source