Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » relative paths in classpath
relative paths in classpath [message #122114] Wed, 26 November 2003 05:38 Go to next message
Eclipse UserFriend
Originally posted by: fschaper.zerodegree.de

Hello,

since I'm not working alone on a project and I have to expect people to have
different path's for their workspaces, I would like to specify relative
paths based on the project root for external jar's.

I ended up changing the ".classpath" file manually to a relative location
based on the project root
....
<classpathentry kind="lib" path="lib/axis.jar"/>
....
however this was fruitless.

Eclipse reports the jar missing at "<projectname>/lib/axis.jar".

Since I expect more people than just me trying to share their project via
CVS shipping with all the build requirements I guess there _is_ a solution
out there. I hope somebody shares his with me ...

I'm using the win32 build of eclipse (2.1.2) btw.

../regards

Florian
Re: relative paths in classpath [message #122239 is a reply to message #122114] Wed, 26 November 2003 10:31 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
Have you tried using classpath variables?

Jerome

"Florian Schaper" <fschaper@zerodegree.de> wrote in message
news:bq1e6c$9i9$2@eclipse.org...
> Hello,
>
> since I'm not working alone on a project and I have to expect people to
have
> different path's for their workspaces, I would like to specify relative
> paths based on the project root for external jar's.
>
> I ended up changing the ".classpath" file manually to a relative location
> based on the project root
> ...
> <classpathentry kind="lib" path="lib/axis.jar"/>
> ...
> however this was fruitless.
>
> Eclipse reports the jar missing at "<projectname>/lib/axis.jar".
>
> Since I expect more people than just me trying to share their project via
> CVS shipping with all the build requirements I guess there _is_ a solution
> out there. I hope somebody shares his with me ...
>
> I'm using the win32 build of eclipse (2.1.2) btw.
>
> ./regards
>
> Florian
>
>
>
>
Re: relative paths in classpath [message #122320 is a reply to message #122239] Wed, 26 November 2003 13:54 Go to previous message
Eclipse UserFriend
Originally posted by: fschaper.zerodegree.de

Jerome Lanneluc wrote:
> Have you tried using classpath variables?
>
> Jerome

Well thanx Jerome, using variables works. I defined a variable in eclipse
and could use that in the ".classpath" file
....
<classpathentry kind="var" path="BLK_LIBS/axis.jar"/>
....
So my coworkers would now only have to point the variable at the correct
folder and be done with it. However I thought there might be a variable
already set for the root of the project or whatever .. I thought seeing a
project on the web that used relative path's without the need of extra
variables in their eclipse project.
Previous Topic:How do I specify vmargs on Mac?
Next Topic:parseCompilationUnit problem with passing in true
Goto Forum:
  


Current Time: Tue Nov 25 22:32:26 GMT 2014

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

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