File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • 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
  • 0
  • 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: 4818
34
Chrome Netbeans IDE Windows
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic