• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

project not in build path error in eclipse

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have imported a existing EJB project into the eclipse making use of the following option.

File->import->general->File system.

when I am using short cuts like Ctrl+Alt+H its showing the follwing error.

"The resource is not in the build path of the java project"

I didn't understand the problem,

can any one help me.

thanks in advance
 
Saloon Keeper
Posts: 25483
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The resource it's referring to is probably a jar file. The import facility essentially just copies in files. I've never seen any indication that it attempts to do project-level operations.

To check, open the Project Properties dialog, go to the Java Build topic and look at what's displayed. If there's a problem, it will probably show there.

If not, check out the Problems window.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sudhana,

It seems that as you have imported an external project your project's build path is not set properly. Try the following steps.

Right click on the project name --> Open Properties --> Java Build Path --> Add Jars

This opens and small window with all your jar files with the projects directory. Navigate to the jar files and select all the jar files. Hope this solves your problem.

Thanks,
Rama Krishna Ghanta.
 
What? What, what, what? What what tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic