title: Eclipse: The resource is not on the build path of a Java project
body: <p>I have been given a source folder (<code>src</code>) of a Java Project. I have created a <code>.project</code> file, kept it inside that folder and imported that project into Eclipse 3.6 through the Import Existing Projects into Workspace Option and added the required jars to it.</p>
  <p>Now the problem is that when ever I do a Call Hierarchy on a Project, it displays an alert box saying
  <strong>&quot;The resource is not on the build path of a java project&quot;</strong></p>
  <p>Could somebody please let me know how to resolve this?</p>
  <p>Please see the image here:</p>
  <p><a href="https://i.stack.imgur.com/11vvL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/11vvL.png" alt="enter image description here" /></a></p>
  <p>Thanks</p>