Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library problems with the Java DK



  Hi,

  Having resolved to finally take a look at Java (with Winston &
Narasimhan's "On to Java" as a guide), I unpacked the Linux JDK
stuff last night.  Specifically, I mean the following files:
linux.jdk-1.0.2-pl1.common.tar.gz
linux.jdk-1.0.2-pl1.static-motif.tgz

  Once again, I had library problems right off the bat:
donegal:/usr/local/java$  bin/appletviewer demo/GraphLayout/example1.html
/usr/local/java/bin/../bin/i586/java: can't resolve symbol '__libc_malloc'

  I made this an opportunity to find out a little more about libraries,
and discovered (in "Running Linux") the very useful command 'ldd', which
lists the libraries required by a dynamically linked program.  So:

donegal:/usr/local/java$ ldd /usr/local/java/bin/../bin/i586/java
        libm.so.5 => /lib/libm.so.5.0.0
        libdl.so.1 => /lib/libdl.so.1.7.3
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6.0
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6.0
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6.0
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6.0
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6.0
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4.3
        libc.so.5 => /lib/libc.so.5.0.9

  As far as I can see from this, 'ld' is able to find all the 
appropriate libraries with the same major number.  Where, then, is
the problem?  Why can the symbol not be resolved?

Dennis McMurchy, 
Tojinmachi, Fukuoka

-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links