This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple eclipse projects want to use same set of jar files

 
Chrix Wu
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I am using eclipse to do a series of hibernate examples,

each of them is an independent project under same workspace,

but all of them are referring to same set of jar files, e.g. hibernate core jars, jdbc, etc.

currently i need to configure the build path for each of them, which is very tedious, is there any better way to do it?

thanks
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse allows you to refer to project B in project A's build path, doesn't it? So set up a project which just contains the commonly-used jars, and have all your other hundreds of projects refer to it.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Projects like what you're describing a usually very complex, and Eclipse isn't really intended to build complex projects all by itself. You're usually better off using Maven or Ant along with Eclipse.

Ant support is built-in, but Ant cannot fetch external libraries without help. Maven, on the other hand, is primarily based on the concept of external libraries (dependencies). You have to install an Eclipse plug-in to get full Maven support in Eclipse, but if you do, it will not only help you build those projects, it will automatically add the Maven dependencies to the Eclipse project build path.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic