Jacob Nikom wrote:
>
> Hi,
>
> I am interested in this discussion, but I am trying to convert it into
> more
> plain English. I always thought that the lightweight components are
> peerless.
> They don't need X libraries and work "directly" with OS and hardware.
Lightweight or heavyweight, you always need X libraries to do GUIs with
the Sun JDK (Blackdown is a ported Sun JDK) on Unix/Linux!
You also always need Motif. Even though Swing greatly reduces use of
Motif, Java still uses Motif for some important things - like creation
of top-level windows and communications with the window manager.
The business about statically linking in Motif... unlike most Unixes,
Linux doesn't come with a bundled Motif library. The Blackdown product
addresses this by building in a way that includes a copy of Motif under
the covers and eliminates your dependence on obtaining an external Motif
library (this is consistent with the Motif license). You still need to
have the other X libraries installed on your system.
Summary: you need X libraries installed on any Unix/Linux system, you
need (in general) Motif libraries installed on Unix (not Linux) systems.
There's a way to make the Blackdown JDK1.1 use the Motif you have
installed on your system instead of the one it has built-in, but that's
non-default behavior.
Finally, if you're not using graphics at all (you're running on a
server), you can eliminate all dependence on X libraries and on having
an X server running. But I suspect that's outside of what you're asking.
Nathan
>
> Swing was claimed as lightweight component based package, so it should
> not
> need X or Windows. On contrary, AWT was claimed to be heavyweight based
> component package, that is why it needs X - is it true? Is it different
> on
> Solaris, Windows or Linux?
>
> Also, "libXm appears to be statically linked into libawt.so" - does it
> mean
> that X modules were compiled and placed into libawt.so library, so in
> reality
> you call X, but you don't need to link with it?
>
> Thank you,
>
> Jacob Nikom
>
> Nathan Meyers wrote:
> >
> > Jeff Galyan wrote:
> > >
> > > Java *always* requires Motif and X libraries. Even on Solaris. End of
> > > story.
> >
> > "Requires" meaning that Blackdown requires an *external* libXm? Not
> > necessarily. JDK1.2pre2 certainly doesn't (libXm appears to be
> > statically linked into libawt.so), and I believe something similar was
> > done for some of the JDK1.1 executables and/or libraries.
> >
> > Nathan
> >
> > >
> > > Carsten Hoeger wrote:
> > > >
> > > > On Sat, Oct 02, Jeff Galyan wrote:
> > > >
> > > > > Actually, libXm.so is Motif, which is required by AWT, and therefore
> > > > > Java. You'll need to get a Motif distribution (I use RedHat Motif 2.1.10
> > > > > with no problems).
> > > >
> > > > That's not true!
> > > >
> > > > There are both, static and dynamic linked versions of the java
> > > > vm. The dependency to libXm results from the dynamical linked
> > > > version.
> > > >
> > > > The static linked version of java _does_ _not_ _need_ Motif
> > > > Runtime Libraries!!!
> > > >
> > > > --
> > > > mit freundlichen Gruessen,
> > > >
> > > > Carsten Hoeger - SuSE Professional Services -
> > > >
> > > > SuSE GmbH, Schanzaeckerstr. 10, 90443 Nuernberg, Germany
> > > > Tel: +49-911-7405356 Mo-Fr 09-17.00, Fax: +49-911-3206727
> > > > http://www.suse.de/bsupport/index.html Email: [EMAIL PROTECTED]
> > > >
> > > > Braune Blaetter schmeissen sich vom Baum und sind tot.
> > > > Es ist Herbst. (O. Kalkofe)
> > >
> > > --
> > > Jeff Galyan
> > > http://www.anamorphic.com
> > > http://www.sun.com
> > > jeffrey dot galyan at sun dot com
> > > talisman at anamorphic dot com
> > > Sun Certified Java(TM) Programmer
> > > ======================================================================
> > > Linus Torvalds on Microsoft and software development:
> > > "... if it's a hobby for me and a job for you, why are you doing such a
> > > shoddy job of it?"
> > >
> > > The views expressed herein do not necessarily reflect those of my
> > > employer.
> > >
> > > Sun Microsystems, Inc., has no connection to my involvement with the
> > > Mozilla Organization.
> > >
> > > ----------------------------------------------------------------------
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> > ----------------------------------------------------------------------
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]