Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Newbie question re:/.classpath files
Newbie question re:/.classpath files [message #85539] Mon, 30 June 2003 11:51 Go to next message
Eclipse UserFriend
Originally posted by: murtikins.hotmail.com

Hi,

I have a number of projects which I would like to start working on with
Eclipse.

I could go and create .project and .classpath for each one, but several
projects are built with the same classpath.

Is there any way of sharing a .classpath file between a number of projects?
It would mean that I wouldn't have to worry about individually updating the
classpath for each project when a new jar was required.

Thanks for any assistance,

Larry.
Re: Newbie question re:/.classpath files [message #85817 is a reply to message #85539] Mon, 30 June 2003 16:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: msolo.third-bit.com

Hi Larry,

Under the Windows menu select Preferences. Then in the Preferences window
expand the Java preference and select Classpath Variables. There you will
be able to add new mappings between jars and a variable name. Then edit
your Java projects properties and add the variable name you defined to the
Java Build Path -> Libraries property.

Another way of doing this is to put all your common libraries into a
folder and then under your Java project's Java Build Path -> Libraries
property add the folder with *.jar; *.zip to include all the libraries.

--
Matthew
Re: Newbie question re:/.classpath files [message #85904 is a reply to message #85539] Mon, 30 June 2003 17:12 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Larry wrote:

> Hi,

> I have a number of projects which I would like to start working on with
> Eclipse.

> I could go and create .project and .classpath for each one, but several
> projects are built with the same classpath.

> Is there any way of sharing a .classpath file between a number of projects?
> It would mean that I wouldn't have to worry about individually updating the
> classpath for each project when a new jar was required.

> Thanks for any assistance,

> Larry.



If you have a number of common libraries shared across all projects, you
can create a separate project containing just these jar files. Go to the
Java Build Path->Export tab and select the jar files. Now go and select
this jar file project as a dependency on your other development projects.

In the future, you just need to add new jar files to the jar project and
make sure that they are exported
Previous Topic:Question : No Java Virtual Machine ?
Next Topic:NoClassDefFoundError - org/apache/xerces/parsers/AbstractDOMParser
Goto Forum:
  


Current Time: Sun Apr 27 00:26:56 EDT 2025

Powered by FUDForum. Page generated in 0.03082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top