Re: trivial third party jar dependancy
- From: Mark Space <markspace@xxxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 06:17:45 GMT
Lew wrote:
Mark Space wrote:With java -jar, you have to set the Class-Path property. For whatever reason, java -jar ignores any classpath you specify on the command line. This is very counter intuitive to me, but there it is.
There is a rationale for it. JARs are how you package your application to run in a foreign environment (the user's). You have no control over the user's CLASSPATH or if they use the -cp option correctly. To get
For a savvy user, I'd like to see the -cp option used. It's a way of making sure stuff is still accessible when an old .jar assumes a library in one location which have moved to another. It's a long term maintenance issue. For that matter, the CLASSPATH in the environment should work the same way. Environment namespace pollution bugs me, but it's still useful.
.
- Follow-Ups:
- Re: trivial third party jar dependancy
- From: Lew
- Re: trivial third party jar dependancy
- References:
- trivial third party jar dependancy
- From: thufir
- Re: trivial third party jar dependancy
- From: Mark Space
- Re: trivial third party jar dependancy
- From: thufir
- Re: trivial third party jar dependancy
- From: Mark Space
- Re: trivial third party jar dependancy
- From: Lew
- trivial third party jar dependancy
- Prev by Date: Re: trivial third party jar dependancy
- Next by Date: Re: JWS Program problem with MAC
- Previous by thread: Re: trivial third party jar dependancy
- Next by thread: Re: trivial third party jar dependancy
- Index(es):
Relevant Pages
|
|