This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to use files from different folder under same project in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to use files from different folder under same project in eclipse" Watch "How to use files from different folder under same project in eclipse" New topic
Author

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

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 386
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

Joined: Sep 20, 2010
Posts: 4087
    
  18

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.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use files from different folder under same project in eclipse
 
It's not a secret anymore!