aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes multiple eclipse projects want to use same set of jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "multiple eclipse projects want to use same set of jar files" Watch "multiple eclipse projects want to use same set of jar files" New topic
Author

multiple eclipse projects want to use same set of jar files

Chrix Wu
Ranch Hand

Joined: Nov 15, 2009
Posts: 121
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


** SCJP 5.0 84% **
** SCWCD 1.5 76% **
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

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

Joined: Jun 25, 2001
Posts: 16140
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple eclipse projects want to use same set of jar files