Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Path to user library
Path to user library [message #214299] Thu, 08 September 2005 08:42 Go to next message
Eclipse UserFriend
Originally posted by: t.por.gmx.net

Hi
is there a way to define the path to User Libraries in an not absolute way?

Regards
Thomas
Re: Path to user library [message #214306 is a reply to message #214299] Thu, 08 September 2005 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Thomas Porocnik wrote:

> Hi
> is there a way to define the path to User Libraries in an not absolute way?

> Regards
> Thomas

Add the library to the classpath using a Class Path variable. Click on
the Add Variable button instead of the Add External Jar button
Re: Path to user library [message #214366 is a reply to message #214306] Fri, 09 September 2005 02:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t.por.gmx.net

Dave Wegener wrote:
> Thomas Porocnik wrote:
>> is there a way to define the path to User Libraries in an not absolute
>> way?

> Add the library to the classpath using a Class Path variable. Click on
> the Add Variable button instead of the Add External Jar button

The intention is to share library settings with the team. If not
everyone uses the same drive and folder for the libs the exported
settings are not directly useable.

Using classpath doesn't help in this case.
I would like to have a kind of mixed definition like: <PROJECT_PATH> +
/somefolder/somelib.jar

Thomas
Re: Path to user library [message #214382 is a reply to message #214366] Fri, 09 September 2005 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Thomas Porocnik wrote:

> Dave Wegener wrote:
>> Thomas Porocnik wrote:
>>> is there a way to define the path to User Libraries in an not absolute
>>> way?

>> Add the library to the classpath using a Class Path variable. Click on
>> the Add Variable button instead of the Add External Jar button

> The intention is to share library settings with the team. If not
> everyone uses the same drive and folder for the libs the exported
> settings are not directly useable.

> Using classpath doesn't help in this case.
> I would like to have a kind of mixed definition like: <PROJECT_PATH> +
> /somefolder/somelib.jar

> Thomas


This is exactly what Class Path Variables do. Each developer defines
where the Class Path Variable points on their system. The associated jar
file is then placed relative to that location. For example, if you define
a Class Path Variable called DEPENDENT_LIB in your workspace and point it
at /arbitrary/filesystem/location. If the jar file is at
/arbitrary/filesystem/location/somefolder/somelib.jar, you add the Class
Path Variable to your class path and extend it to point to
somefolder/somelib.jar. This results in an entry in your .classpath file
similar to DEPENDENT_LIB/somefolder/somelib.jar.

If another developer has somefolder/somelib.jar located at
/another/filesystem/location, they would define the DEPENDENT_LIB variable
to point to /another/filesystem/location. You can now share the
classpath file.
Re: Path to user library [message #214486 is a reply to message #214382] Mon, 12 September 2005 04:10 Go to previous message
Eclipse UserFriend
Originally posted by: t.por.gmx.net

Dave Wegener wrote:

> This is exactly what Class Path Variables do. Each developer defines
> where the Class Path Variable points on their system. The associated
> jar file is then placed relative to that location.
> This results in an entry in your .classpath
> file similar to DEPENDENT_LIB/somefolder/somelib.jar.
>

I want to do this on the workspace wide level in User Libraries...
Previous Topic:Common Javadoc location
Next Topic:(Newbie)BuildPath problem
Goto Forum:
  


Current Time: Wed May 07 07:13:04 EDT 2025

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

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

Back to the top