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


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

Linking Jars

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Linking Jars
Date 2011-12-03 19:53 -0800
Organization Canadian Mind Products
Message-ID <darld75fmiqqj4s6pnl9mk06va039uq1bv@4ax.com> (permalink)

Show all headers | View raw


Lets say you have two jars and you want to treat them logically as
one.   This might happen if your program needs some third party
library.  What are your options?

1. mention the second jar in the -classpath

2. install the jar in the ext directory

3. extract the members you need from the library and add them all to
the main jar.  

4. extract the members you need from the library and add them to the
main jar. (How do you find out which you need, especially for a
plug-in that dynamically loads classes.)

5. Use JNLP where you can specify secondary jars.

Are there any other options?

Is there anything comparably WORA and free to JNLP for installing
ordinary apps so that they look like C apps to Windows users.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.
 

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


Thread

Linking Jars Roedy Green <see_website@mindprod.com.invalid> - 2011-12-03 19:53 -0800
  Re: Linking Jars Roedy Green <see_website@mindprod.com.invalid> - 2011-12-03 20:00 -0800
    Re: Linking Jars Robert Klemme <shortcutter@googlemail.com> - 2011-12-04 11:20 +0100
      Re: Linking Jars Lew <lewbloch@gmail.com> - 2011-12-04 10:37 -0800
        Re: Linking Jars Robert Klemme <shortcutter@googlemail.com> - 2011-12-04 23:24 +0100
        Re: Linking Jars Roedy Green <see_website@mindprod.com.invalid> - 2011-12-05 04:20 -0800
          Re: Linking Jars ilAn <idonot@wantspam.net> - 2011-12-05 21:49 +0200
            Re: Linking Jars Tom Anderson <twic@urchin.earth.li> - 2011-12-06 22:11 +0000
          Re: Linking Jars Arne Vajhøj <arne@vajhoej.dk> - 2011-12-05 22:11 -0500
          OT: Was Re: Linking Jars RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-12-07 15:11 +0000
      Re: Linking Jars Tom Anderson <twic@urchin.earth.li> - 2011-12-04 20:25 +0000
        Re: Linking Jars markspace <-@.> - 2011-12-04 13:43 -0800
          Re: Linking Jars Tom Anderson <twic@urchin.earth.li> - 2011-12-06 22:06 +0000
  Re: Linking Jars Ronny Schütz <usenet.r96@gishpuppy.com> - 2011-12-04 23:18 +0100

csiph-web