Okay, here's how I understand the Blackdown builds of the VM: there is a
fully dynamic version and a static version. To switch between them, you
set an environment variable (I think). If you want to use the
dynamically-linked VM, you have to have both X and Motif shared
libraries on your system.
As for Swing, if you go far enough up the class hierarchy, you'll find
that all Swing components descend from AWT's Component class, which
means (unfortunately or fortunately) that Swing really does use native X
and Motif at its most base level. The widgets themselves don't have
native peers, true, but in order to draw, Swing uses facilities of X and
Motif. I don't know the full down'n'dirty details, just that Swing does
need X and Motif libraries. Unfortunately, I don't know if there's any
way to get around it (besides the statically-linked version of
Blackdown's port of the VM).
--Jeff
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.
>
> 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]
--
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]