• Register
1 vote


I’ve searched the question bank here but nobody asked or answer my question yet. My question might be silly to you but yeah this needs to be answered. I’ve pulled out a project from git and using Apache Ant in Eclipse.

Well, the error I am getting is, this compilation is not on the build path

Please enlighten me in this regard if possible. Thanks.

12 7 7
15,250 points

1 Answer

1 vote


As far as I can understand, you imported the project as a general project. That’s the reason your project missing the java nature and producing the error. Either you need to add java nature in your program manually in the .project file of your workspace or go through the GUI to fix the error.


 Or go through your IDE 

  1. Right-click on your project
  2. Go to "Properties"
  3. Choose "Project Natures"
  4. Click on "Add"
  5. Choose "Java"
  6. Click "Apply and Close"

Boom! Your problem should fix now. Give it another try and let me know here the update.

13 9 6
94,240 points

Related questions

0 votes
1 answer 20 views
Problem: I am trying to compile my build.xml file but I am facing the below error: BUILD FAILED C:\Users\workspace\testrepo\src\build.xml:36: Compile failed; see the compiler error output for details.     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150) ... to Java and Ant so unable to even understand the above error so looking for someone who can help me in fixing the above error.
asked Jul 24 Raphael Pacheco 4.9k points
1 vote
1 answer 92 views
Problem : I have recently started learning Android. If I try to execute my Android project on my Eclipse ADT then I often see below errors in my Console: [Dex Loader] Failed to load C:\Users\Martin\android-sdks\build-tools\26.0.0-preview\lib\dx.jar [ ... this case "C:\Users\Martin\android-sdks" is considered as the SDK folder. Kindly help me in fixing above strange looking Android error.
asked May 21 Martin K 6.6k points
0 votes
2 answers 76 views
Problem : I want to compile a project in Eclipse using the m2eclipse. I set my JDK path in Eclipse as below: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing me below error [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ ... BUILD FAILURE [INFO] ------------------------------------------------------------------------
asked Feb 4 jwilliam 3.9k points
0 votes
1 answer 41 views
Problem : I created a project by Maven integration in Eclipse , but in the work space in all JSP files have bellow message: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
asked Oct 31, 2019 peterlaw 6.9k points