• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use files from different folder under same project in eclipse

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created different projects in eclipse. I have java classes which are (i) in different folders under same project - How can I import files in a source java class from class files in another folder ?
and (ii) in different folders under different project - How can I import files in a source java class from class files in another project ?

Can I set classpath in eclipse ? I tried looking under java build path, but did not find anything explicit about classpath. I checked help section also, but that was of not much help.

 
Stephan van Hulst
Bartender
Pie
Posts: 5888
63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can rightclick on the project, go to Build path, and Configure build path. Then go to the projects tab and you can simply add the required project to the build path.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic