Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30907

Re: Using jar inside a jar

From Nigel Wade <nmw@ion.le.ac.uk>
Newsgroups comp.lang.java.programmer
Subject Re: Using jar inside a jar
Date 2015-01-26 09:28 +0000
Message-ID <cimfleFj3pbU1@mid.individual.net> (permalink)
References (5 earlier) <8k8yahcsg1j8$.o5hkd2bta9p1$.dlg@40tude.net> <cieohbFio1aU1@mid.individual.net> <tes3y06oesoz$.941a9ot92oeb$.dlg@40tude.net> <cif8meFn028U1@mid.individual.net> <1gv0s2dwyrhig$.1xbh0tkzetk7s$.dlg@40tude.net>

Show all headers | View raw


On 23/01/15 21:42, Joerg Meier wrote:
> On Fri, 23 Jan 2015 15:46:21 +0000, Nigel Wade wrote:
>
>> On 23/01/15 12:12, Joerg Meier wrote:
>>> On Fri, 23 Jan 2015 11:10:35 +0000, Nigel Wade wrote:
>>>> I'm not a fan of the "big jar" concept. I much prefer to keep libraries in separate jar's. If a library class gets
>>>> updated it's only need to update a single library jar, rather than every "big jar" which contains that class.
>>> Different areas, I'd say. For end users you almost never would want them to
>>> update libraries on their own, unless your end users are developers.
>> Why not? End user, or system admin. I'd still not supply a "big bundled jar" unless there was a specific requirement to
>> do so.
>
>> When you get updates from Microsoft do you get a few small patched libraries, or GB's of statically linked applications
>> each time?
>
> Depends on who provides the libraries. If it's third parties, like is the
> case for most Java libraries, then I most certainly get them with each app
> that uses them.If it's .NET, like the JRE, I tend to not get them bundled
> other than a few exceptional cases.
>
> Nobody guarantees you that newer versions of open source libraries will
> behave 100% the same as the one you dev against.
>
> Honestly, short of .NET, DirectX, OpenGL and similar giants, I know of no
> library for Windows that isn't delivered along with the app that needs it.
> I honestly can't remember the last time an installer said "To run this you
> need to manually install library so and so", again, other than above
> behemoths.
>
> Do you and me live in different realities or do I misunderstand you ?
>
> Liebe Gruesse,
> 		Joerg
>


Well, yes, you clearly do misunderstand me completely.

In your scenario you describe applications as being supplied with libraries. Presumably those libraries can be 
upgraded/patched without it being necessary to re-download the entire application and re-install it?

Also, if different applications share the requirement for the same library you only need to have 1 copy of that library, 
not a different copy for each application?

Maybe Windows is different, and application developers think differently, but on Linux if I install/develop an 
application which, for example, requires access openSSL libraries I wouldn't expect those libraries to be statically 
linked into the application requiring the application to be downloaded and re-installed every time there was a change to 
openSSL. I would expect to be able to upgrade the library via a different route, and the application will get the latest 
update automatically via dynamic linking. The same applies to the "big jar" application. If any of the jar's bundled 
into the "big jar" were updated the application wouldn't benefit from that change until the application developer 
supplied you with an updated application, and you'd have to re-install the entire application all over, rather than just 
the updated library jar.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using jar inside a jar Cecil Westerhof <Cecil@decebal.nl> - 2015-01-22 11:48 +0100
  Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-22 11:28 +0000
    Re: Using jar inside a jar Cecil Westerhof <Cecil@decebal.nl> - 2015-01-22 13:05 +0100
      Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-22 13:46 +0100
        Re: Using jar inside a jar Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 08:15 -0500
          Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-22 16:30 +0100
        Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-22 14:18 +0000
          Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-22 16:29 +0100
            Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-23 11:10 +0000
              Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-23 13:12 +0100
                Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-23 15:46 +0000
                Re: Using jar inside a jar Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-01-23 11:18 -0500
                Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-23 22:42 +0100
                Re: Using jar inside a jar Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-23 17:02 -0500
                Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-24 14:14 +0100
                Re: Using jar inside a jar Martin Gregorie <martin@address-in-sig.invalid> - 2015-01-24 15:33 +0000
                Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-26 09:28 +0000
                Re: Using jar inside a jar Joerg Meier <joergmmeier@arcor.de> - 2015-01-26 21:14 +0100
                Re: Using jar inside a jar Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 15:23 -0500
                Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-28 14:19 +0000
              Re: Using jar inside a jar Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-01-24 11:46 +0000
        Re: Using jar inside a jar Wayne <nospam@all.invalid> - 2015-01-23 00:47 -0500
        Re: Using jar inside a jar Silvio <silvio@internet.com> - 2015-01-23 12:28 +0100
      Re: Using jar inside a jar Nigel Wade <nmw@ion.le.ac.uk> - 2015-01-22 14:18 +0000

csiph-web