Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[eclipse]: how to import packages from different project?

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all-
I have two separate projects on eclipse. I try not to open both at the same time because it becomes really slow. But one of my projects require packages from the other, so I have to open the second project so Eclipse recognize the new classes that I'm importing/using.
If I open my properties for my project, you can only add folders for your source path that belongs for _that_ project, not from external ones. When you open the other project, I can tick the "required projects on the build path" option, but this is not exactly what I want. I don't want to open it just to use that.
any ideas?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about just jar'ing up the other project's classes and importing that .jar file into the project at hand?
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
How about just jar'ing up the other project's classes and importing that .jar file into the project at hand?

I used this approach for a project and found it to be acceptable. An approach that I am considering for my next project is to use any to perform my builds instead of the Eclipse build system. I've recently discovered the Ant view and it seems like the ideal approach to project dependecies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic