|
Re: Relative Path for adding jar files? [message #266974 is a reply to message #266970] |
Tue, 09 December 2008 13:47 |
Eclipse User |
|
|
|
Originally posted by: 4cs6fcg02.sneakemail.com
Piyush Soni schreef:
> Hi,
> I'm adding some third party jar files in my project and want to
> distribute my project along with the jar files to some people. But the
> problem is, when I add the jar files in my project, the classpath copies
> the absolute path of the files, which will of course not work on some
> other machine if he doesn't copy the files at the exact same location.
>
> How to make eclipse to add a path relative to my project?
I put jar files directly in the root of my project. This makes the
..classpath file system independent and suitable for version control. It
is a bit more troublesome to have source and javadoc locations relative
as well. Along with that you can add *.jar to svn:ignore (or whatever
system you’re using).
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
|
|
|
|
|
Re: Relative Path for adding jar files? [message #266983 is a reply to message #266970] |
Tue, 09 December 2008 18:46 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 12/9/2008 8:22 AM, Piyush Soni wrote:
> Hi,
> I'm adding some third party jar files in my project and want to
> distribute my project along with the jar files to some people. But the
> problem is, when I add the jar files in my project, the classpath copies
> the absolute path of the files, which will of course not work on some
> other machine if he doesn't copy the files at the exact same location.
>
> How to make eclipse to add a path relative to my project?
If you did not want to include the JARs in your project, you could use a
User Library or Classpath Variable to allow each user to specify their
location on his own machine. Here is the relevant Help page:
http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.u ser/reference/preferences/java/ref-preferences-build-path.ht m
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03204 seconds